> For the complete documentation index, see [llms.txt](https://docs.scriptsfivem.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scriptsfivem.com/resources/sfgarages/exports-triggers.md).

# Exports/Triggers

## TRIGGERS Lua code examples for Client Side

```lua
local type_garage = "vehicle" -- options: "vehicle", "boat", "plate"
TriggerEvent("sfgarages:openGarage", type_garage) -- open ems tablet
```

```lua
TriggerEvent("nuifix") -- if the NUI breaks.
```

## EXPORTS Lua code examples for Client Side

e.g. Useful for radial menus.

```lua
local type_garage = "vehicle" -- options: "vehicle", "boat", "plate"
local result = exports["sfgarages"]:searchGarage(type_garage)
return result -- return true or false
```
