RegisterQueryFile

Syntax

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

Usage

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.

Description

Send request the file for the client to get hash

Return

Returns a hook handle. Use UnRegisterQueryFile to remove the forward