Native referenceRedM
GET_NUMBER_OF_EVENTS
0x5CE8DE5909565748 SCRIPTSint GET_NUMBER_OF_EVENTS(`eventGroup` (int));Knowledge from the field
What builders have learned.
Community-submitted notes linked to this native. Read the full finding for its context and constraints.
Finding / 81Reading RDR3 AI events (skinning/loot) from TypeScript: poll the event queue + marshal GET_EVENT_DATA with a JS ArrayBuffer
## Context RDR3 AI/script events (EVENT_LOOT, EVENT_LOOT_COMPLETE, skinning, etc.) are NOT delivered through FiveM's `gameEventTriggered` / `CEvent*` handler — that's a GTA5/FiveM mechanism. Hooking `
Read the field note