RedM Natives

REGISTER_RAW_NUI_CALLBACK

Hash0xA8AE9C2F
Runtime nameRegisterRawNuiCallback
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void REGISTER_RAW_NUI_CALLBACK(char* callbackType, func callback);

Parameters

NameTypeDescription
callbackTypechar*—
callbackfunc—

Returns void

Usage

Lua
RegisterRawNuiCallback(callbackType, callback)

-- always works, by hash
Citizen.InvokeNative(0xa8ae9c2f, callbackType, callback)
JavaScript and C#
JavaScript
RegisterRawNuiCallback(callbackType, callback);

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

See also

Sources

Cfx.re native reference

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