RedM Natives

IS_PED_OPENING_DOOR

Returns true if the ped is currently opening a door (CTaskOpenDoor).

Hash0x26AF0E8E30BD2A2C
Runtime nameIsPedOpeningDoor
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x26AF0E8E30BD2A2C

Signature

BOOL IS_PED_OPENING_DOOR(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns BOOL

Description

Returns true if the ped is currently opening a door (CTaskOpenDoor).

Old name: _IS_PED_OPENING_A_DOOR

Usage

Lua
local retval = IsPedOpeningDoor(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x26AF0E8E30BD2A2C, ped, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedOpeningDoor(ped);

// by hash
const retval = Citizen.invokeNative('0x26AF0E8E30BD2A2C', ped, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x26AF0E8E30BD2A2C, ped);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.