PedClient

isPedModel

IS_PED_MODEL0xC9D55B1A358A5BF7

The GTA V native IS_PED_MODEL of the PED namespace, as LS:MP client scripts call it: the global function isPedModel, in JavaScript and in Lua.

SignatureJavaScript
isPedModel(ped: Ped, modelHash: Hash): boolean
SignatureLua
isPedModel(ped: Ped, modelHash: Hash): boolean

Usage

JavaScript
const result = isPedModel(ped, modelHash);
Lua
local result = isPedModel(ped, modelHash)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
modelHashHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_MODEL(Ped ped, Hash modelHash)
Hash
0xC9D55B1A358A5BF7

Open in the interactive natives reference