_IS_PED_SHOCKING_EVENT_ACTIVE
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
BOOL _IS_PED_SHOCKING_EVENT_ACTIVE(Ped ped, int p1); // 0xAB7993BA61A4674F b1232Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | p1 | int |
Facts
| 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.
local result = Citizen.InvokeNative(0xAB7993BA61A4674F, -- _IS_PED_SHOCKING_EVENT_ACTIVE
PlayerPedId(), -- Ped ped
0 -- int p1
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xAB7993BA61A4674F", // _IS_PED_SHOCKING_EVENT_ACTIVE
PlayerPedId(), // Ped ped
0, // int p1
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xAB7993BA61A4674F, // _IS_PED_SHOCKING_EVENT_ACTIVE
API.PlayerPedId(), // Ped ped
0 // int p1
);Related FIRE natives
- IS_EXPLOSION_ACTIVE_IN_AREA
- _IS_ENTITY_BEING_DAMAGED_BY_FIRE
- _IS_ENTITY_CONSUMED_BY_FIRE
- _IS_EXPLOSION_IN_VOLUME
- IS_ENTITY_ON_FIRE
- IS_EXPLOSION_IN_ANGLED_AREA
- IS_EXPLOSION_IN_AREA
- IS_EXPLOSION_IN_SPHERE
- _ADD_EXPLOSION_WITH_DAMAGE_CAUSER
- _ADD_EXPLOSION_WITH_USER_VFX_AND_DAMAGE_CAUSER
- _GET_CLOSEST_FIRE_POS_IN_VOLUME
- _STOP_FIRE_IN_BOX
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.