REGISTER_RESOURCE_AS_EVENT_HANDLER
An internal function which allows the current resource's HLL script runtimes to receive state for the specified event.
Hash
0xD233A168Runtime name
RegisterResourceAsEventHandlerNamespaceCFX
SideClient + server
NameOfficial
Docs
Signature
void REGISTER_RESOURCE_AS_EVENT_HANDLER(char* eventName);Parameters
| Name | Type | Description |
|---|---|---|
eventName | char* | An event name, or "*" to disable HLL event filtering for this resource. |
Returns void
Description
An internal function which allows the current resource's HLL script runtimes to receive state for the specified event.
Usage
RegisterResourceAsEventHandler(eventName)
-- always works, by hash
Citizen.InvokeNative(0xd233a168, eventName)JavaScript and C#
RegisterResourceAsEventHandler(eventName);
// by hash
Citizen.invokeNative('0xd233a168', eventName);Function.Call((Hash)0xd233a168, eventName);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.