The Lab
EVENT native

ADD_SHOCKING_EVENT_FOR_ENTITY

returns ScrHandle12 paramsbuild 1207

Creates a shocking event of type eventType tied to entity that nearby peds can react to, and returns its handle.

Signature

C
ScrHandle ADD_SHOCKING_EVENT_FOR_ENTITY(Hash eventType, Entity entity, float p2, float p3, float p4, float p5, float p6, float p7, BOOL p8, BOOL p9, int p10, int p11); // 0x7FD8F3BE76F89422 b1207

Parameters

#NameType
1eventTypeHash
2entityEntity
3p2float
4p3float
5p4float
6p5float
7p6float
8p7float
9p8BOOL
10p9BOOL
11p10int
12p11int

Facts

Facts about ADD_SHOCKING_EVENT_FOR_ENTITY
Name
ADD_SHOCKING_EVENT_FOR_ENTITY
Hash
0x7FD8F3BE76F89422
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(0x7FD8F3BE76F89422, -- ADD_SHOCKING_EVENT_FOR_ENTITY
  GetHashKey("name"), -- Hash eventType
  PlayerPedId(), -- Entity entity
  0.0, -- float p2
  0.0, -- float p3
  0.0, -- float p4
  0.0, -- float p5
  0.0, -- float p6
  0.0, -- float p7
  false, -- BOOL p8
  false, -- BOOL p9
  0, -- int p10
  0, -- int p11
  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("0x7FD8F3BE76F89422", // ADD_SHOCKING_EVENT_FOR_ENTITY
  GetHashKey("name"), // Hash eventType
  PlayerPedId(), // Entity entity
  0.0, // float p2
  0.0, // float p3
  0.0, // float p4
  0.0, // float p5
  0.0, // float p6
  0.0, // float p7
  false, // BOOL p8
  false, // BOOL p9
  0, // int p10
  0, // int p11
  Citizen.resultAsInteger()
);
console.log(scrHandle)
C#
int scrHandle = Function.Call<int>((Hash)0x7FD8F3BE76F89422, // ADD_SHOCKING_EVENT_FOR_ENTITY
  (uint)API.GetHashKey("name"), // Hash eventType
  API.PlayerPedId(), // Entity entity
  0.0f, // float p2
  0.0f, // float p3
  0.0f, // float p4
  0.0f, // float p5
  0.0f, // float p6
  0.0f, // float p7
  false, // BOOL p8
  false, // BOOL p9
  0, // int p10
  0 // int p11
);
All EVENT natives

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