_ADD_DOOR_TO_SYSTEM_NEW
Registers the door identified by doorHash with the door system so scripts can control its state.
Register the door before setting its state, and remove it with REMOVE_DOOR_FROM_SYSTEM when done.
Signature
void _ADD_DOOR_TO_SYSTEM_NEW(Hash doorHash, BOOL p1, BOOL p2, BOOL p3, int threadId, int p5, BOOL p6); // 0xD99229FE93B46286 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | doorHash | Hash |
| 2 | p1 | BOOL |
| 3 | p2 | BOOL |
| 4 | p3 | BOOL |
| 5 | threadId | int |
| 6 | p5 | int |
| 7 | p6 | BOOL |
Facts
| Name | _ADD_DOOR_TO_SYSTEM_NEW |
|---|---|
| Hash | 0xD99229FE93B46286 |
| 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(0xD99229FE93B46286, -- _ADD_DOOR_TO_SYSTEM_NEW
GetHashKey("name"), -- Hash doorHash
false, -- BOOL p1
false, -- BOOL p2
false, -- BOOL p3
0, -- int threadId
0, -- int p5
false -- BOOL p6
)Citizen.invokeNative("0xD99229FE93B46286", // _ADD_DOOR_TO_SYSTEM_NEW
GetHashKey("name"), // Hash doorHash
false, // BOOL p1
false, // BOOL p2
false, // BOOL p3
0, // int threadId
0, // int p5
false // BOOL p6
);Function.Call((Hash)0xD99229FE93B46286, // _ADD_DOOR_TO_SYSTEM_NEW
(uint)API.GetHashKey("name"), // Hash doorHash
false, // BOOL p1
false, // BOOL p2
false, // BOOL p3
0, // int threadId
0, // int p5
false // BOOL p6
);Related OBJECT natives
- _DOOR_SYSTEM_SET_ABLE_TO_CHANGE_OPEN_RATIO_WHILE_LOCKED
- DOOR_SYSTEM_GET_DOOR_STATE
- DOOR_SYSTEM_SET_DOOR_STATE
- _DOOR_SYSTEM_CHANGE_SCRIPT_OWNER
- _DOOR_SYSTEM_CHECK_ACTION_FLAG
- _DOOR_SYSTEM_CLEAR_FORCED_OPEN_PLAYER
- _DOOR_SYSTEM_FORCE_SHUT
- _DOOR_SYSTEM_GET_AUTOMATIC_RATE
- _DOOR_SYSTEM_GET_FORCED_OPEN_PLAYER
- _DOOR_SYSTEM_SET_AUTOMATIC_STATE
- _DOOR_SYSTEM_SWING_OPEN
- CONVERT_OLD_PICKUP_TYPE_TO_NEW
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.