> For the complete documentation index, see [llms.txt](https://none-fivem.gitbook.io/nonem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://none-fivem.gitbook.io/nonem/resources/no-housing/configuration/garage.md).

# Garage

In order to garage to work, you need to set the garage actions from this section.

## Examples

***

```lua
Config.Garage = {
    Open = function(address, spawnPoint)
        TriggerEvent("garage:open", address, spawnPoint.coords, spawnPoint.h)
    end,
    OnEnter = function(address, spawnPoint)
        TriggerEvent("garage:setCurrent", {
            name = address,
            spawnpoints = {spawnPoint}
        })
    end,
    OnExit = function(address, spawnPoint)
        TriggerEvent("garage:setCurrent", nil)
    end
}
```

<details>

<summary>Open</summary>

If defined, it will be executed when the player enters the garage zone and press E.

### Parameters

* address: string
* spawnPoint: {coords: vector3, h: number}

</details>

<details>

<summary>OnEnter</summary>

If defined, it will be executed when the player enters the garage zone.

### Parameters

* address: string
* spawnPoint: {coords: vector3, h: number}

</details>

<details>

<summary>OnExit</summary>

If defined, it will be executed when the player exits the garage zone.

### Parameters

* address: string
* spawnPoint: {coords: vector3, h: number}

</details>
