isPedModel
IS_PED_MODEL0xC9D55B1A358A5BF7The 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.
isPedModel(ped: Ped, modelHash: Hash): booleanisPedModel(ped: Ped, modelHash: Hash): booleanUsage
JavaScript
const result = isPedModel(ped, modelHash);Lua
local result = isPedModel(ped, modelHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
modelHash | Hash | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_MODEL(Ped ped, Hash modelHash)- Hash
0xC9D55B1A358A5BF7