REGISTER_RAW_NUI_CALLBACK
Signature
void REGISTER_RAW_NUI_CALLBACK(char* callbackType, func callback);Parameters
| Name | Type | Description |
|---|---|---|
callbackType | char* | — |
callback | func | — |
Returns void
Usage
RegisterRawNuiCallback(callbackType, callback)
-- always works, by hash
Citizen.InvokeNative(0xa8ae9c2f, callbackType, callback)JavaScript and C#
RegisterRawNuiCallback(callbackType, callback);
// by hash
Citizen.invokeNative('0xa8ae9c2f', callbackType, callback);Function.Call((Hash)0xa8ae9c2f, callbackType, callback);See also
UNREGISTER_RAW_NUI_CALLBACKWill unregister and cleanup a registered NUI callback handler.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.