From RAGE Multiplayer Wiki
Jump to navigation Jump to search

locked is 0 if no door is found
locked is 0 if door is unlocked
locked is 1 if door is found and unlocked.

the locked bool is either 0(unlocked)(false) or 1(locked)(true)


mp.game.object.getStateOfClosestDoorOfType(type, x, y, z, locked, heading);

Required Arguments

  • type: Model hash or name
  • x: float
  • y: float
  • z: float
  • locked: BOOL
  • heading: float

Return value

  • object: locked, heading


// todo

See also