RedM Natives

_DOOR_SYSTEM_GET_FORCED_OPEN_PLAYER

Returns the player who forced the specified door open using a physical interaction such as kicking or shoulder bashing.

Hash0xEBA314768FB35D58
Runtime nameDoorSystemGetForcedOpenPlayer
NamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Player _DOOR_SYSTEM_GET_FORCED_OPEN_PLAYER(Hash doorHash);

Parameters

NameTypeDescription
doorHashHash—

Returns Player

Description

alloc8or RDR3 NativeDB

Returns the player who forced the specified door open using a physical interaction such as kicking or shoulder bashing.
Returns 255 if no valid player is associated or the door was not force-opened.
Only works for player-driven forced interactions on door-system registered doors; normal door opening and NPC interactions do not populate this value.

VORPCORE RDR3natives

Returns the player who forced the specified door open using physical interaction
(e.g. kicking or shoulder bashing).
If a player breaks or forces the door open, this native returns the Player ID directly.

Usage

Lua
local retval = DoorSystemGetForcedOpenPlayer(doorHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0xEBA314768FB35D58, doorHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = DoorSystemGetForcedOpenPlayer(doorHash);

// by hash
const retval = Citizen.invokeNative('0xEBA314768FB35D58', doorHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xEBA314768FB35D58, doorHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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