| Property | Value |
|---|---|
| Native Name | DOOR_SYSTEM_SET_AUTOMATIC_DISTANCE |
| Hash | 0x9BA001CB45CBF627 |
| Return Type | void |
| Build | 1207 |
| Parameters | doorHash (Hash), distance (float), requestDoor (BOOL), forceUpdate (BOOL) |
Parameters
doorHash(Hash) — Door system identifierdistance(float)requestDoor(BOOL)forceUpdate(BOOL) — On true invokes DOOR_SYSTEM_SET_DOOR_STATE; otherwise requestDoor is unused.
Usage
Lua (Direct):
DoorSystemSetAutomaticDistance(doorHash, distance, requestDoor, forceUpdate)
Lua (Hash):
Citizen.InvokeNative(0x9BA001CB45CBF627, doorHash, distance, requestDoor, forceUpdate)