The Lab
EVENT native

_CREATE_SHOCKING_EVENT

returns ScrHandle1 parambuild 1207

Creates a shocking event from a packed argument structure and returns its handle.

Signature

C
ScrHandle _CREATE_SHOCKING_EVENT(Any* args); // 0xCA1315C33B9A2847 b1207

Parameters

#NameType
1argsAny* (out pointer)

Facts

Facts about _CREATE_SHOCKING_EVENT
Name
_CREATE_SHOCKING_EVENT
Hash
0xCA1315C33B9A2847
Namespace
Returns
ScrHandle
Game build
1207

Examples

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

Lua
local scrHandle, args = Citizen.InvokeNative(0xCA1315C33B9A2847, -- _CREATE_SHOCKING_EVENT
  Citizen.PointerValueInt(), -- Any* args
  Citizen.ResultAsInteger()
)
print(scrHandle, args)
JavaScript
const [scrHandle, args] = Citizen.invokeNative("0xCA1315C33B9A2847", // _CREATE_SHOCKING_EVENT
  Citizen.pointerValueInt(), // Any* args
  Citizen.resultAsInteger()
);
console.log(scrHandle, args)
C#
var argsArg = new OutputArgument();
int scrHandle = Function.Call<int>((Hash)0xCA1315C33B9A2847, // _CREATE_SHOCKING_EVENT
  argsArg // Any* args
);
int args = argsArg.GetResult<int>();
All EVENT natives

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