The Lab
SCRIPT native

TRIGGER_SCRIPT_EVENT

returns void5 paramsbuild 1207

Sends a script event with the payload eventData to the players whose bits are set in playerBits.

Signature

C
void TRIGGER_SCRIPT_EVENT(int eventGroup, Any* eventData, int eventDataSize, int scriptMetadataIndex, int* playerBits); // 0x5AE99C571D5BBE5D b1207

Parameters

#NameType
1eventGroupint
2eventDataAny* (out pointer)
3eventDataSizeint
4scriptMetadataIndexint
5playerBitsint* (out pointer)

Facts

Facts about TRIGGER_SCRIPT_EVENT
Name
TRIGGER_SCRIPT_EVENT
Hash
0x5AE99C571D5BBE5D
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local eventData, playerBits = Citizen.InvokeNative(0x5AE99C571D5BBE5D, -- TRIGGER_SCRIPT_EVENT
  0, -- int eventGroup
  Citizen.PointerValueInt(), -- Any* eventData
  0, -- int eventDataSize
  0, -- int scriptMetadataIndex
  Citizen.PointerValueInt() -- int* playerBits
)
print(eventData, playerBits)
JavaScript
const [eventData, playerBits] = Citizen.invokeNative("0x5AE99C571D5BBE5D", // TRIGGER_SCRIPT_EVENT
  0, // int eventGroup
  Citizen.pointerValueInt(), // Any* eventData
  0, // int eventDataSize
  0, // int scriptMetadataIndex
  Citizen.pointerValueInt() // int* playerBits
);
console.log(eventData, playerBits)
C#
var eventDataArg = new OutputArgument();
var playerBitsArg = new OutputArgument();
Function.Call((Hash)0x5AE99C571D5BBE5D, // TRIGGER_SCRIPT_EVENT
  0, // int eventGroup
  eventDataArg, // Any* eventData
  0, // int eventDataSize
  0, // int scriptMetadataIndex
  playerBitsArg // int* playerBits
);
int eventData = eventDataArg.GetResult<int>();
int playerBits = playerBitsArg.GetResult<int>();
All SCRIPT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.