ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setGarageOpen

Function

setGarageOpen

ServerWorldIdentical to MTA:SA

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.
isOpenbool
true = 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.

See also