- Documentation
- Server functions
- setGarageOpen
Function
setGarageOpen
Stores whether a game garage (Pay'n'Spray, mission garages, numbers 0-49) should be open. The state is sent to players and read with isGarageOpen on both sides.
Syntax
bool setGarageOpen(int garageID, bool isOpen)Arguments
garageIDint- Garage number 0-49.
isOpenbooltrue= open.
Returns
true on success.
Example
setGarageOpen(8, true)
Notes
State for scripts. The game does not open garage doors on a script's command yet.