The Lab
OBJECT native

_DOOR_SYSTEM_SWING_OPEN

returns void5 paramsbuild 1207

Swings the registered door open in the given direction, optionally reversed.

Signature

C
void _DOOR_SYSTEM_SWING_OPEN(Hash doorHash, float dirX, float dirY, float dirZ, BOOL reverseDirection); // 0xB3B1546D23DF8DE1 b1207

Parameters

#NameType
1doorHashHash
2dirXfloat
3dirYfloat
4dirZfloat
5reverseDirectionBOOL

Facts

Facts about _DOOR_SYSTEM_SWING_OPEN
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.

Lua
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
)
JavaScript
// 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
);
C#
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
);
All OBJECT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.