PedClient

isPedSheltered

IS_PED_SHELTERED0xB8B52E498014F5B0

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_SHELTERED(Ped ped)
Hash
0xB8B52E498014F5B0

Open in the interactive natives reference