# Client

## Exports

### Is Player Tuner

Returns whether the player is tuner or not. If tuner it also returns the shopId.

```lua
exports['t1ger_tuningsystem']:IsPlayerTuner()
-- returns boolean(true/false). If true, also returns INT (shopId)
-- Example:
local isTuner, shopId = exports['t1ger_tuningsystem']:IsPlayerTuner()
```

**Returns:**

* Boolean(true/false)
* INT(shopId) - only returns if boolean is true

### **Get Item Info**

```lua
exports['t1ger_tuningsystem']:GetItemInfo(itemName)
-- itemName (string): the name of the item
-- Example:
local itemInfo = exports['t1ger_tuningsystem']:GetItemInfo(itemName)
```

**Returns:**

* Table(name, label, price, icon)

### **Get Vehicle Nitrous Properties**

```lua
exports['t1ger_tuningsystem']:GetVehicleNitrousProperties(vehicle)
-- vehicle(int): entity handle for the vehicle
-- Example:
local nitrous = exports['t1ger_tuningsystem']:GetVehicleNitrousProperties(vehicle)
```

**Returns:**

* Table(size, shots, burst, color)

### **Get Vehicle Dyno Properties**

```lua
exports['t1ger_tuningsystem']:GetVehicleDynoProperties(vehicle)
-- vehicle(int): entity handle for the vehicle
-- Example:
local dyno = exports['t1ger_tuningsystem']:GetVehicleDynoProperties(vehicle)
```

**Returns:**

* Table(torque, power, brakes)

## Events

### Add Account Money

Adds x money to the given account.

```lua
TriggerServerEvent('tuningsystem:server:addAccountMoney', shopId, amount)
-- shopId(INT): tuner shop id
-- amount(INT): amount of money to add to the account
```

### Remove Account Money

Removes x money from the given account.

```lua
TriggerServerEvent('tuningsystem:server:removeAccountMoney', shopId, amount)
-- shopId(INT): tuner shop id
-- amount(INT): amount of money to remove from the account
```

### Set Account Money

Sets the account balance of the given account to x.

```lua
TriggerServerEvent('tuningsystem:server:setAccountMoney', shopId, amount)
-- shopId(INT): tuner shop id
-- amount(INT): amount of money to set the new account balance to.
```
