Native referenceFiveM

_DOOR_CONTROL

0x9B12F9A24FABEDB0 OBJECT
FUNCTION SIGNATURE
void _DOOR_CONTROL(Hash modelHash, float x, float y, float z, BOOL locked, float xRotMult, float yRotMult, float zRotMult);
Property Value
Native Name _DOOR_CONTROL
Hash 0x9B12F9A24FABEDB0
Return Type void
Parameters modelHash (Hash), x (float), y (float), z (float), locked (BOOL), xRotMult (float), yRotMult (float), zRotMult (float)

Description: Hardcoded not to work in multiplayer environments. Native name between SET_LOCAL_PLAYER_VISIBLE_LOCALLY & SET_MAX_WANTED_LEVEL.

OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 0, 0.0, 50.0, 0);  //door unlocked
OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 1, 0.0, 50.0, 0);  //door locked

Parameters

  • modelHash (Hash)
  • x (float)
  • y (float)
  • z (float)
  • locked (BOOL) — tells the game whether or not the door is locked
  • xRotMult (float) — multiplier that specifies how fast the door/gate will rotate in degrees per second.
  • yRotMult (float) — multiplier that specifies how fast the door/gate will rotate in degrees per second.
  • zRotMult (float) — multiplier that specifies how fast the door/gate will rotate in degrees per second.

Examples

DoorControl(`prop_gate_prison_01`, 1845.0, 2605.0, 45.0, 0, 0.0, 50.0, 0) -- door unlocked
DoorControl(`prop_gate_prison_01`, 1845.0, 2605.0, 45.0, 1, 0.0, 50.0, 0) -- door locked
Back to OBJECT