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

# T1GER Mechanic System

<figure><img src="/files/nGx8A2I6PR8qjfqCXj8l" alt=""><figcaption></figcaption></figure>

#### [**View on Tebex**](https://store.t1ger.net/package/5719711) | [**CFX Forum Post**](https://forum.cfx.re/t/esx-qb-t1ger-mechanic-system/5123000) | [**YouTube Showcase**](https://youtu.be/yBlY2HB3wNA) | [**Discord**](https://discord.gg/t1ger)

## Information

### Chat Commands

{% hint style="info" %}
Please note, all these command strings are configurable and can be disabled as well.
{% endhint %}

{% tabs %}
{% tab title="client" %}

<table><thead><tr><th width="186">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>/adminmech</code></td><td>Open the admin mechanic menu.</td></tr><tr><td><code>/mechmenu</code></td><td>Open the player mechanic menu.</td></tr><tr><td><code>/tow</code></td><td>Use near a flatbed to use built-in tow trucking feature</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

### Exports

{% hint style="info" %}
These are available exports in the resource - use them as you please and find necessary.
{% endhint %}

{% tabs %}
{% tab title="client " %}

####

{% endtab %}

{% tab title="server" %}

#### Get Player Mech Id

```lua
exports['t1ger_mechanicsystem']:GetPlayerMechId(src)
```

Parameters:

* The player handle (player server id).

Returns:

* mechanic shop id of the player

Gets a player's mechanic shop id. Returns 0 if not hired in any mechanic shops.

#### Plus Mechanic Account

```lua
exports['t1ger_mechanicsystem']:PlusMechanicAccount(id, amount)
```

Paramters:

* The shop handle (shop id).
* Amount to plus (int).

Adds x amount of money to the current shop account balance.

#### Minus Mechanic Account

```lua
exports['t1ger_mechanicsystem']:MinusMechanicAccount(id, amount)
```

Paramters:

* The shop handle (shop id).
* Amount to minus (int).

Deducts x amount of money from the current shop account balance.

#### Get Player Mechanic Shop

```lua
exports['t1ger_mechanicsystem']:GetPlayerMechanicShop(jobName)
```

Parameters:

* The player job name (string).

Returns:

* mechanic shop (table)

Gets the player's shop data based on job name. If job does not match, it returns nil.
{% endtab %}
{% endtabs %}

### Events

{% hint style="info" %}
These are optional events that you may need to use from other resources to add compatibility.
{% endhint %}

{% tabs %}
{% tab title="client to server" %}

####

{% endtab %}
{% endtabs %}

## Support

### Common Issues

Before we proceed, please ensure the following:

1. Resource folder of the package is named: `t1ger_mechanicsystem`.
2. You have not touched nor edited files inside `t1ger_mechanicsystem/escrow/`.
3. You have not made any custom changes.

{% hint style="success" %}
**TITLE**\
[❓](https://emojipedia.org/question-mark/)  Question/Issue

[✔️](https://emojiguide.com/symbols/check-mark/) Solution/Answer/Instruction
{% endhint %}

### Error Codes

If you getting an error code in your server- or client-console, then please find the error-code from below and fix your issue with the provided instructions.

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

{% endtab %}

{% tab title="Server" %}

{% endtab %}
{% endtabs %}
