_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.
0xEBA314768FB35D58DoorSystemGetForcedOpenPlayerSignature
Player _DOOR_SYSTEM_GET_FORCED_OPEN_PLAYER(Hash doorHash);Parameters
| Name | Type | Description |
|---|---|---|
doorHash | Hash | — |
Returns Player
Description
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.
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
local retval = DoorSystemGetForcedOpenPlayer(doorHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0xEBA314768FB35D58, doorHash, Citizen.ResultAsInteger())JavaScript and C#
const retval = DoorSystemGetForcedOpenPlayer(doorHash);
// by hash
const retval = Citizen.invokeNative('0xEBA314768FB35D58', doorHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xEBA314768FB35D58, doorHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.