Object::doorControl

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

when you set locked to false the door open and to true the door close
mp.game.object.doorControl(mp.game.joaat('v_ilev_cs_door'), 482.911, -1312.584, 29.20103, false, 0.0, 50.0, 0); //door open

mp.game.object.doorControl(mp.game.joaat('v_ilev_cs_door'), 482.911, -1312.584, 29.20103, true, 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