PedClient

isPedInModel

IS_PED_IN_MODEL0x796D90EFB19AA332

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
modelHashHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_IN_MODEL(Ped ped, Hash modelHash)
Hash
0x796D90EFB19AA332

Open in the interactive natives reference