SCAN_RESOURCE_ROOT
Scans the resources in the specified resource root.
Signature
void SCAN_RESOURCE_ROOT(char* rootPath, func callback);Parameters
| Name | Type | Description |
|---|---|---|
rootPath | char* | The resource directory to scan. |
callback | func | A callback that will receive an object with results. |
Returns void
Description
Scans the resources in the specified resource root. This function is only available in the 'monitor mode' process and is not available for user resources.
Usage
ScanResourceRoot(rootPath, callback)
-- always works, by hash
Citizen.InvokeNative(0x636f097f, rootPath, callback)JavaScript and C#
ScanResourceRoot(rootPath, callback);
// by hash
Citizen.invokeNative('0x636f097f', rootPath, callback);Function.Call((Hash)0x636f097f, rootPath, callback);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.