_DOOR_SYSTEM_SWING_OPEN
Swings the registered door open in the given direction, optionally reversed.
Signature
void _DOOR_SYSTEM_SWING_OPEN(Hash doorHash, float dirX, float dirY, float dirZ, BOOL reverseDirection); // 0xB3B1546D23DF8DE1 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | doorHash | Hash |
| 2 | dirX | float |
| 3 | dirY | float |
| 4 | dirZ | float |
| 5 | reverseDirection | BOOL |
Facts
| Name | _DOOR_SYSTEM_SWING_OPEN |
|---|---|
| Hash | 0xB3B1546D23DF8DE1 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xB3B1546D23DF8DE1, -- _DOOR_SYSTEM_SWING_OPEN
GetHashKey("name"), -- Hash doorHash
0.0, -- float dirX
0.0, -- float dirY
0.0, -- float dirZ
false -- BOOL reverseDirection
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xB3B1546D23DF8DE1", // _DOOR_SYSTEM_SWING_OPEN
GetHashKey("name"), // Hash doorHash
0.0, // float dirX
0.0, // float dirY
0.0, // float dirZ
false // BOOL reverseDirection
);Function.Call((Hash)0xB3B1546D23DF8DE1, // _DOOR_SYSTEM_SWING_OPEN
(uint)API.GetHashKey("name"), // Hash doorHash
0.0f, // float dirX
0.0f, // float dirY
0.0f, // float dirZ
false // BOOL reverseDirection
);Related OBJECT natives
- _DOOR_SYSTEM_SET_ABLE_TO_CHANGE_OPEN_RATIO_WHILE_LOCKED
- _DOOR_SYSTEM_CLEAR_FORCED_OPEN_PLAYER
- _DOOR_SYSTEM_GET_FORCED_OPEN_PLAYER
- _DOOR_SYSTEM_SET_AUTOMATIC_STATE
- _DOOR_SYSTEM_CHANGE_SCRIPT_OWNER
- _DOOR_SYSTEM_CHECK_ACTION_FLAG
- _DOOR_SYSTEM_FORCE_SHUT
- _DOOR_SYSTEM_GET_AUTOMATIC_RATE
- DOOR_SYSTEM_GET_DOOR_STATE
- DOOR_SYSTEM_GET_OPEN_RATIO
- DOOR_SYSTEM_SET_DOOR_STATE
- DOOR_SYSTEM_SET_OPEN_RATIO
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.