RedM Natives

SCAN_RESOURCE_ROOT

Scans the resources in the specified resource root.

Hash0x636F097F
Runtime nameScanResourceRoot
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SCAN_RESOURCE_ROOT(char* rootPath, func callback);

Parameters

NameTypeDescription
rootPathchar*

The resource directory to scan.

callbackfunc

A callback that will receive an object with results.

Returns void

Description

Cfx.re native reference

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

Lua
ScanResourceRoot(rootPath, callback)

-- always works, by hash
Citizen.InvokeNative(0x636f097f, rootPath, callback)
JavaScript and C#
JavaScript
ScanResourceRoot(rootPath, callback);

// by hash
Citizen.invokeNative('0x636f097f', rootPath, callback);
C#
Function.Call((Hash)0x636f097f, rootPath, callback);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.