Page cover

Exports List

IMPORTANT: These exports are available only in iZaap Garage versions above

SERVER-SIDE

addTempPrivateGarage

exports['izaap_garage']:addTempPrivateGarage(Label, PlayerIdentifier, DurationSeconds)
  • Label: string (Garage label)

  • PlayerIdentifier: string (e.g. license:xxxxxxxxxxxx)

  • DurationSeconds: number (seconds)

Grants temporary private access to an existing garage label for a specific player.

Example Usage

exports['izaap_garage']:addTempPrivateGarage('Bajeta Private', 'license:123456abcdef', 1800)

removeTempPrivateGarage


exports['izaap_garage']:removeTempPrivateGarage(Label, PlayerIdentifier)
  • Label: string

  • PlayerIdentifier: string

Removes temporary private access previously granted with addTempPrivateGarage.

Example Usage


addTempGangGarage


  • Label: string

  • GangName: string

  • MinGrade: number

  • DurationSeconds: number (seconds)

Grants temporary gang access for an existing garage label.

Example Usage


removeTempGangGarage


  • Label: string

Removes temporary gang access previously granted with addTempGangGarage.

Example Usage


getAllGarages


Get a list of all cached garages.

Example Usage


getGarageByIndex


Get a garage by index (1-based) or by label.

  • IndexOrLabel: number | string

Example Usage


syncGarages


Forces a full reload from DB -> cache and refreshes clients.

Example Usage


getAllImpounds


Get a list of all cached impounds.

Example Usage


getImpoundByIndex


Get an impound by index (1-based), by numeric ID, or by label.

  • IndexIdOrLabel: number | string

Example Usage


syncImpounds


Forces a global impounds sync (admin/tools).

Example Usage


requestImpoundsSync


Sends impounds sync data to a specific player.

  • PlayerSource: number

Example Usage


isJobAllowedForImpound


Checks if a job is allowed to use a given impound.

  • ImpoundId: number

  • JobName: string

Example Usage


CLIENT-SIDE

isInGarageZone


Checks whether the player is inside a garage zone.

Example Usage


openGarageIfInZone


Opens the garage UI only if the player is inside a garage zone.

Example Usage


OpenGarageHere


Opens the garage UI at the current location (when supported by your configuration).

Example Usage


ClientaddTempPrivateGarage


Creates a temporary client-side private garage zone/marker.

  • Label: string

  • Coords: vector3

  • Options: table

    • radius: number

    • type: string (e.g. car)

    • blip: boolean (optional)

    • blip_sprite: number (optional)

    • blip_color: number (optional)

Example Usage


ClientremoveTempPrivateGarage


Removes a temporary client-side private garage zone/marker.

  • Label: string

Example Usage

Last updated