Object::doorControl

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

when you set locked to 0 the door open and to 1 the door close
OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 0, 0.0, 50.0, 0); //door open

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

p5-7 - Rot?

doorHash = https://wiki.gtanet.work/index.php?title=Doors

Syntax

mp.game.object.doorControl(doorHash, x, y, z, locked, p5, p6, p7);

Required Arguments

  • doorHash: Model hash or name
  • x: float
  • y: float
  • z: float
  • locked: Boolean
  • p5: float
  • p6: float
  • p7: float

Return value

  • Undefined

Example

// todo

See also