RedM Natives

GET_NUM_RESOURCES

Hash0x863F27B
Runtime nameGetNumResources
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

int GET_NUM_RESOURCES();

Returns int

Usage

Lua
local retval = GetNumResources()

-- always works, by hash
local retval = Citizen.InvokeNative(0x863f27b, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetNumResources();

// by hash
const retval = Citizen.invokeNative('0x863f27b', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x863f27b);

Sources

Cfx.re native reference

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