ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. isGarageOpen

Function

isGarageOpen

Server and clientWorldIdentical to MTA:SA

Returns whether a garage was marked as open with setGarageOpen. Works on both sides.

Syntax

bool isGarageOpen(int garageID)

Arguments

garageIDint
Garage number 0-49.

Returns

true when open.

Example

outputDebugString(tostring(isGarageOpen(8)))

See also