# 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.<br>

{% 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 %}

##


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infinite-mod.gitbook.io/infinite-documentation/infinite-resources/publish-your-docs/optional-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
