RedM Natives

REGISTER_NUI_CALLBACK

Hash0xC59B980C
Runtime nameRegisterNuiCallback
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void REGISTER_NUI_CALLBACK(char* callbackType, func callback);

Parameters

NameTypeDescription
callbackTypechar*—
callbackfunc—

Returns void

Usage

Lua
RegisterNuiCallback(callbackType, callback)

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

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

Sources

Cfx.re native reference

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