The Lab
OBJECT native

DOOR_SYSTEM_SET_DOOR_STATE

returns void2 paramsbuild 1207

Sets the state of the registered door, for example to lock or unlock it.

The door must be registered with the door system first.

Signature

C
void DOOR_SYSTEM_SET_DOOR_STATE(Hash doorHash, int state); // 0x6BAB9442830C7F53 b1207

Parameters

#NameType
1doorHashHash
2stateint

Facts

Facts about DOOR_SYSTEM_SET_DOOR_STATE
Name
DOOR_SYSTEM_SET_DOOR_STATE
Hash
0x6BAB9442830C7F53
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(0x6BAB9442830C7F53, -- DOOR_SYSTEM_SET_DOOR_STATE
  GetHashKey("name"), -- Hash doorHash
  0 -- int state
)
JavaScript
Citizen.invokeNative("0x6BAB9442830C7F53", // DOOR_SYSTEM_SET_DOOR_STATE
  GetHashKey("name"), // Hash doorHash
  0 // int state
);
C#
Function.Call((Hash)0x6BAB9442830C7F53, // DOOR_SYSTEM_SET_DOOR_STATE
  (uint)API.GetHashKey("name"), // Hash doorHash
  0 // int state
);
All OBJECT natives

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