_IS_PED_SHOCKING_EVENT_ACTIVE
Tested with fire & dynamite.
Hash
0xAB7993BA61A4674FRuntime name
IsPedShockingEventActiveNamespaceFIRE
SideClient
NameCommunity guess
Docs
Since build1232
Signature
BOOL _IS_PED_SHOCKING_EVENT_ACTIVE(Ped ped, int p1);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | int | — |
Returns BOOL
Description
Tested with fire & dynamite. Only returns true using value p1 = 1 and when the ped is affected by fire.
Usage
local retval = IsPedShockingEventActive(ped, p1)
-- always works, by hash
local retval = Citizen.InvokeNative(0xAB7993BA61A4674F, ped, p1, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedShockingEventActive(ped, p1);
// by hash
const retval = Citizen.invokeNative('0xAB7993BA61A4674F', ped, p1, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xAB7993BA61A4674F, ped, p1);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.