RedM Natives

UNREGISTER_RAW_NUI_CALLBACK

Will unregister and cleanup a registered NUI callback handler.

Hash0x7FB46432
Runtime nameUnregisterRawNuiCallback
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void UNREGISTER_RAW_NUI_CALLBACK(char* callbackType);

Parameters

NameTypeDescription
callbackTypechar*

The callback type to target

Returns void

Description

Cfx.re native reference

Will unregister and cleanup a registered NUI callback handler.

Use along side the REGISTER_RAW_NUI_CALLBACK native.

Usage

Lua
UnregisterRawNuiCallback(callbackType)

-- always works, by hash
Citizen.InvokeNative(0x7fb46432, callbackType)
JavaScript and C#
JavaScript
UnregisterRawNuiCallback(callbackType);

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

See also

Sources

Cfx.re native reference

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