PedClient

isPedOpeningDoor

IS_PED_OPENING_DOOR0x26AF0E8E30BD2A2C

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns true if the ped is currently opening a door.

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_OPENING_DOOR(Ped ped)
Hash
0x26AF0E8E30BD2A2C
Formerly
_IS_PED_OPENING_A_DOOR

Open in the interactive natives reference