# Optional Configuration

## Deformation Vehicle

Options to enable or disable Deformation vehicle ( visual damage vehicle ). Edit on `shared/config.lua`\
<https://github.com/Kiminaze/VehicleDeformation>

```lua
Config.compatibility = {-- all script in directory modules/... can adjust as you need
    -- options dependency :  kimikaze (https://github.com/Kiminaze/VehicleDeformation)
    ["deformation"] = "kiminaze" 
}
Config.Deformation = true -- options : true | false
```

## Boat, Helicopter & Plane Garages

How to Boat, Helicopter and plane garage work ?\
All controlled by garage type in `shared/garages.lua`

## Private Or Jobs Garages

Private garage can add restriction in `shared/garages.lua` \
restriction can use Group, Job & Gang for QBCore, Identifier *(ESX use char1:xxxx or steam:xxxx)* and *(QBCore use citizenId)*

## Property Garages

If you use a paid property resource, it's best to contact the resource developer for assistance with property garages, as the Codesign Team doesn't have access to those resources without the developer’s permission. However, we've made it very simple for you to integrate property garages into your property resource.\\

{% tabs %}
{% tab title="Client" %}
Store Vehicle

```lua
local propertyId = "house_1" -- example property id
TriggerEvent("inf_garage:client:parkVehicle", propertyId)
```

\
Open Garage

```lua
local propertyId = "house_1" -- example property id
TriggerEvent("inf_garage:client:openGarage", garageName)
```

{% endtab %}

{% tab title="Server" %}
Store Vehicle

```lua
local propertyId = "house_1" -- example property id
TriggerClientEvent("inf_garage:client:parkVehicle", source, propertyId)
```

\
Open Garage

```lua
local propertyId = "house_1" -- example property id
TriggerClientEvent("inf_garage:client:openGarage", source, garageName)
```

{% endtab %}
{% endtabs %}

##
