isPedInModel
IS_PED_IN_MODEL0x796D90EFB19AA332The GTA V native IS_PED_IN_MODEL of the PED namespace, as LS:MP client scripts call it: the global function isPedInModel, in JavaScript and in Lua.
isPedInModel(ped: Ped, modelHash: Hash): booleanisPedInModel(ped: Ped, modelHash: Hash): booleanUsage
JavaScript
const result = isPedInModel(ped, modelHash);Lua
local result = isPedInModel(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_IN_MODEL(Ped ped, Hash modelHash)- Hash
0x796D90EFB19AA332