PedClient

isPedHuman

IS_PED_HUMAN0xB980061DA992779D

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

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

Usage

JavaScript
const result = isPedHuman(ped);
Lua
local result = isPedHuman(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/false if the ped is/isn't humanoid.

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_HUMAN(Ped ped)
Hash
0xB980061DA992779D

Open in the interactive natives reference