IS_PED_BEING_STUNNED
Hash
0x4FBACCE3B4138EE8Runtime name
IsPedBeingStunnedNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x4FBACCE3B4138EE8Signature
BOOL IS_PED_BEING_STUNNED(Ped ped, Hash weaponType);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
weaponType | Hash | — |
Returns BOOL
Usage
local retval = IsPedBeingStunned(ped, weaponType)
-- always works, by hash
local retval = Citizen.InvokeNative(0x4FBACCE3B4138EE8, ped, weaponType, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedBeingStunned(ped, weaponType);
// by hash
const retval = Citizen.invokeNative('0x4FBACCE3B4138EE8', ped, weaponType, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x4FBACCE3B4138EE8, ped, weaponType);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.