AMX Mod X API Documentation

Signature
native QueryFileHook:RegisterQueryFile(const file[], const function[], const ResourceType:type, const hash = -1);
Description

Send request the file for the client to get hash

Parameters
  • file The file (Can contain a relative path to the file)
  • function The forward to call
  • type The request type, can be only RES_TYPE_EXISTS, RES_TYPE_MISSING or RES_TYPE_HASH_ANY
  • hash Hash of file to request.
Returns

Returns a hook handle. Use UnRegisterQueryFile to remove the forward

Назад
Верх