> For the complete documentation index, see [llms.txt](https://izaap-studios.gitbook.io/izaap-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://izaap-studios.gitbook.io/izaap-scripts/garages-advanced/exports-list.md).

# Exports List

## <mark style="color:$primary;">SERVER-SIDE</mark>

### addTempPrivateGarage

```md
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

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

***

### &#x20;removeTempPrivateGarage

***

```lua
exports['izaap_garage']:removeTempPrivateGarage(Label, PlayerIdentifier)
```

* Label: `string`
* PlayerIdentifier: `string`

Removes temporary private access previously granted with `addTempPrivateGarage`.

> Example Usage

```lua
exports['izaap_garage']:removeTempPrivateGarage('Bajeta Private', 'license:123456abcdef')
```

***

### addTempGangGarage

***

```lua
exports['izaap_garage']:addTempGangGarage(Label, GangName, MinGrade, DurationSeconds)
```

* Label: `string`
* GangName: `string`
* MinGrade: `number`
* DurationSeconds: `number` (seconds)

Grants temporary gang access for an existing garage label.

> Example Usage

```lua
exports['izaap_garage']:addTempGangGarage('Sombra Garage', 'ballas', 2, 600)
```

***

### removeTempGangGarage

***

```lua
exports['izaap_garage']:removeTempGangGarage(Label)
```

* Label: `string`

Removes temporary gang access previously granted with `addTempGangGarage`.

> Example Usage

```lua
exports['izaap_garage']:removeTempGangGarage('Sombra Garage')
```

***

### getAllGarages

***

Get a list of all cached garages.

```lua
exports['izaap_garage']:getAllGarages()
```

> Example Usage

```lua
local garages = exports['izaap_garage']:getAllGarages()
```

***

### getGarageByIndex

***

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

```lua
exports['izaap_garage']:getGarageByIndex(IndexOrLabel)
```

* IndexOrLabel: `number | string`

> Example Usage

```lua
local g1 = exports['izaap_garage']:getGarageByIndex(1)
local g2 = exports['izaap_garage']:getGarageByIndex('Bajeta Private')
```

***

### syncGarages

***

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

```lua
exports['izaap_garage']:syncGarages()
```

> Example Usage

```lua
exports['izaap_garage']:syncGarages()
```

***

### getAllImpounds

***

Get a list of all cached impounds.

```lua
exports['izaap_garage']:getAllImpounds()
```

> Example Usage

```lua
local impounds = exports['izaap_garage']:getAllImpounds()
```

***

### getImpoundByIndex

***

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

```lua
exports['izaap_garage']:getImpoundByIndex(IndexIdOrLabel)
```

* IndexIdOrLabel: `number | string`

> Example Usage

```lua
local imp1  = exports['izaap_garage']:getImpoundByIndex(1)
local imp12 = exports['izaap_garage']:getImpoundByIndex(12)
local imp   = exports['izaap_garage']:getImpoundByIndex('Police Impound')
```

***

### syncImpounds

***

Forces a global impounds sync (admin/tools).

```lua
exports['izaap_garage']:syncImpounds()
```

> Example Usage

```lua
exports['izaap_garage']:syncImpounds()
```

***

### requestImpoundsSync

***

Sends impounds sync data to a specific player.

```lua
exports['izaap_garage']:requestImpoundsSync(PlayerSource)
```

* PlayerSource: `number`

> Example Usage

```lua
exports['izaap_garage']:requestImpoundsSync(source)
```

***

### isJobAllowedForImpound

***

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

```lua
exports['izaap_garage']:isJobAllowedForImpound(ImpoundId, JobName)
```

* ImpoundId: `number`
* JobName: `string`

> Example Usage

```lua
local ok = exports['izaap_garage']:isJobAllowedForImpound(12, 'police')
```

***

## <mark style="color:$primary;">CLIENT-SIDE</mark>

### isInGarageZone

***

Checks whether the player is inside a garage zone.

```lua
exports["izaap_garage"]:isInGarageZone()
```

> Example Usage

```lua
local inZone, g, dist = exports["izaap_garage"]:isInGarageZone()
```

***

### openGarageIfInZone

***

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

```lua
exports["izaap_garage"]:openGarageIfInZone()
```

> Example Usage

```lua
exports["izaap_garage"]:openGarageIfInZone()
```

***

### OpenGarageHere

***

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

```lua
exports["izaap_garage"]:OpenGarageHere()
```

> Example Usage

```lua
exports["izaap_garage"]:OpenGarageHere()
```

***

### ClientaddTempPrivateGarage

***

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

```lua
exports["izaap_garage"]:ClientaddTempPrivateGarage(Label, Coords, Options)
```

* 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

```lua
exports["izaap_garage"]:ClientaddTempPrivateGarage(
  "CASA 24/7",
  vec3(215.1, -810.2, 30.7),
  { radius = 4.5, type = "car" }
)
```

***

### ClientremoveTempPrivateGarage

***

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

```lua
exports["izaap_garage"]:ClientremoveTempPrivateGarage(Label)
```

* Label: `string`

> Example Usage

```lua
exports["izaap_garage"]:ClientremoveTempPrivateGarage("CASA 24/7")
```

```
::contentReference[oaicite:0]{index=0}
```
