Object::getStateOfClosestDoorOfType
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)
Syntax
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
Example
// todo