RegisterQueryFile

Синтаксис

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

Употреба

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.

Описание

Send request the file for the client to get hash

Връщаща стойност

Returns a hook handle. Use UnRegisterQueryFile to remove the forward