The Lab
EVENT native

ADD_SHOCKING_EVENT_AT_POSITION

returns ScrHandle11 paramsbuild 1207

Creates a shocking event of type eventType at the given position that nearby peds can react to, and returns its handle.

Remove it with REMOVE_SHOCKING_EVENT when the scene is over.

Signature

C
ScrHandle ADD_SHOCKING_EVENT_AT_POSITION(Hash eventType, float x, float y, float z, float p4, float p5, float p6, float p7, float p8, int p9, int p10); // 0xD9F8455409B525E9 b1207

Parameters

#NameType
1eventTypeHash
2xfloat
3yfloat
4zfloat
5p4float
6p5float
7p6float
8p7float
9p8float
10p9int
11p10int

Facts

Facts about ADD_SHOCKING_EVENT_AT_POSITION
Name
ADD_SHOCKING_EVENT_AT_POSITION
Hash
0xD9F8455409B525E9
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 = Citizen.InvokeNative(0xD9F8455409B525E9, -- ADD_SHOCKING_EVENT_AT_POSITION
  GetHashKey("name"), -- Hash eventType
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float p4
  0.0, -- float p5
  0.0, -- float p6
  0.0, -- float p7
  0.0, -- float p8
  0, -- int p9
  0, -- int p10
  Citizen.ResultAsInteger()
)
print(scrHandle)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const scrHandle = Citizen.invokeNative("0xD9F8455409B525E9", // ADD_SHOCKING_EVENT_AT_POSITION
  GetHashKey("name"), // Hash eventType
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float p4
  0.0, // float p5
  0.0, // float p6
  0.0, // float p7
  0.0, // float p8
  0, // int p9
  0, // int p10
  Citizen.resultAsInteger()
);
console.log(scrHandle)
C#
int scrHandle = Function.Call<int>((Hash)0xD9F8455409B525E9, // ADD_SHOCKING_EVENT_AT_POSITION
  (uint)API.GetHashKey("name"), // Hash eventType
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float p4
  0.0f, // float p5
  0.0f, // float p6
  0.0f, // float p7
  0.0f, // float p8
  0, // int p9
  0 // int p10
);
All EVENT natives

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