isPedWearingHelmet
IS_PED_WEARING_HELMET0xF33BDFE19B309B19The GTA V native IS_PED_WEARING_HELMET of the PED namespace, as LS:MP client scripts call it: the global function isPedWearingHelmet, in JavaScript and in Lua.
isPedWearingHelmet(ped: Ped): booleanisPedWearingHelmet(ped: Ped): booleanUsage
JavaScript
const result = isPedWearingHelmet(ped);Lua
local result = isPedWearingHelmet(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns true if the ped passed through the parenthesis is wearing a helmet.
Reference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_WEARING_HELMET(Ped ped)- Hash
0xF33BDFE19B309B19