isPedHuman
IS_PED_HUMAN0xB980061DA992779DThe GTA V native IS_PED_HUMAN of the PED namespace, as LS:MP client scripts call it: the global function isPedHuman, in JavaScript and in Lua.
isPedHuman(ped: Ped): booleanisPedHuman(ped: Ped): booleanUsage
JavaScript
const result = isPedHuman(ped);Lua
local result = isPedHuman(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/false if the ped is/isn't humanoid.
Reference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_HUMAN(Ped ped)- Hash
0xB980061DA992779D