# Coins System

#### To use the vip functionality you need to make sure you set it up correctly

## 1. Commands

To give the player coins, you can just use the commands (in-game or console of server)

Its the same commands of spawning account money in Fivem

### ESX - Commands

```
giveaccountmoney id coins amount
```

```
setaccountmoney id coins amount
```

**Example:**

```
giveaccountmoney 1 coins 1500
```

```
setaccountmoney 1 coins 1500
```

### QB Core - Commands

```
setmoney id coins amount
```

```
givemoney id coins amount
```

**Example:**

```
setmoney 1 coins 1500
```

```
givemoney 1 coins 1500
```

## 2. Installation

### ESX

#### 1. Go to file es\_extended/config.lua.

#### 2. Find Config.Accounts or any other name that contains bank, money and black\_money account setup

#### 3. Add the coins account like in the following example

```lua
Config.Accounts             = {
	bank = {
		label = TranslateCap('account_bank'),
		round = true
	},
	black_money = {
		label = TranslateCap('account_black_money'),
		round = true
	},
	money = {
		label = TranslateCap('account_money'),
		round = true
	},
	coins = {
		label = "VIP Coins",
		round = true
	}
}

```

On the label you can write whatever you want, and if you know how to do it you can use TranslateCap and add the coins reference on you locale file of the translations

### QB Core

#### 1. Go to file qb-core/config.lua.

#### 2. Find QBConfig.Money.MoneyTypes and QBConfig.Money.DontAllowMinus

#### 3. Add the coins account just like in the example

```lua
QBConfig.Money.MoneyTypes = { cash = 500, bank = 5000, crypto = 0 , coins = 0} -- type = startamount - Add or remove money types for your server (for ex. blackmoney = 0), remember once added it will not be removed from the database!
QBConfig.Money.DontAllowMinus = { 'cash', 'crypto','coins' } -- Money that is not allowed going in minus
```

## 3. Done


---

# 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://playooze-scripts.gitbook.io/playooze-scripts/script-guides/playooze-dealership/coins-system.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.
