PedClient

isPedInAnySub

IS_PED_IN_ANY_SUB0xFBFC01CCFB35D99E

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

SignatureJavaScript
isPedInAnySub(ped: Ped): boolean
SignatureLua
isPedInAnySub(ped: Ped): boolean

Usage

JavaScript
const result = isPedInAnySub(ped);
Lua
local result = isPedInAnySub(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_IN_ANY_SUB(Ped ped)
Hash
0xFBFC01CCFB35D99E

Open in the interactive natives reference