The Lab
FIRE native

_IS_PED_SHOCKING_EVENT_ACTIVE

returns BOOL2 paramsbuild 1232

Based on its name and signature, here is our best reading:

Returns true if a shocking event of the given type is active for ped.

Signature

C
BOOL _IS_PED_SHOCKING_EVENT_ACTIVE(Ped ped, int p1); // 0xAB7993BA61A4674F b1232

Parameters

#NameType
1pedPed
2p1int

Facts

Facts about _IS_PED_SHOCKING_EVENT_ACTIVE
Name
_IS_PED_SHOCKING_EVENT_ACTIVE
Hash
0xAB7993BA61A4674F
Namespace
Returns
BOOL
Game build
1232

Examples

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

Lua
local result = Citizen.InvokeNative(0xAB7993BA61A4674F, -- _IS_PED_SHOCKING_EVENT_ACTIVE
  PlayerPedId(), -- Ped ped
  0 -- int p1
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xAB7993BA61A4674F", // _IS_PED_SHOCKING_EVENT_ACTIVE
  PlayerPedId(), // Ped ped
  0, // int p1
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xAB7993BA61A4674F, // _IS_PED_SHOCKING_EVENT_ACTIVE
  API.PlayerPedId(), // Ped ped
  0 // int p1
);
All FIRE natives

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