PedClient

isPedWearingHelmet

IS_PED_WEARING_HELMET0xF33BDFE19B309B19

The 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.

SignatureJavaScript
isPedWearingHelmet(ped: Ped): boolean
SignatureLua
isPedWearingHelmet(ped: Ped): boolean

Usage

JavaScript
const result = isPedWearingHelmet(ped);
Lua
local result = isPedWearingHelmet(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Open in the interactive natives reference