EntityClient

isEntityAPed

IS_ENTITY_A_PED0x524AC5ECEA15343E

The GTA V native IS_ENTITY_A_PED of the ENTITY namespace, as LS:MP client scripts call it: the global function isEntityAPed, in JavaScript and in Lua.

SignatureJavaScript
isEntityAPed(entity: Entity): boolean
SignatureLua
isEntityAPed(entity: Entity): boolean

Usage

JavaScript
const result = isEntityAPed(entity);
Lua
local result = isEntityAPed(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_A_PED(Entity entity)
Hash
0x524AC5ECEA15343E

Open in the interactive natives reference