# Base Configuration

{% hint style="info" %}
All scripts are configured through a single config file and this file is `0r-casinobase/shared/config.lua`
{% endhint %}

### Change Language

If you change this setting, all scripts will follow the same process and all will be set in the language of your choice. Only 2 languages available to choose from `en (English), tr (Turkish)` .

{% hint style="info" %}
If you want to add your own language, you can add it by creating a support request with the locales file you have prepared.
{% endhint %}

{% code title="0r-casinobase/shared/config.lua:5" %}

```lua
Config.Locale = 'en' -- en, tr
```

{% endcode %}

### Interaction

The script only works with the target system, so you cannot use DrawText or DrawText3D. Supported target systems are `qb-target` and `ox_target` .

{% code title="0r-casinobase/shared/config.lua:9" %}

```lua
Config.Interaction = 'ox_target' -- 'qb-target' or 'ox_target'
```

{% endcode %}

### Inventory

{% hint style="warning" %}
The script only supports certain inventories and versions qb-inventory, ps-inventory and lj-inventory must be new versions.
{% endhint %}

{% hint style="info" %}
If your inventory script is not supported in the script, you can make adjustments by finding the necessary functions from `0r-casinobase/server/core.lua`.
{% endhint %}

Inventories currently supported; `qb-inventory, lj-inventory, ps-inventory, qs-inventory, tgiann-inventory, ox_inventory, codem-inventory`

{% code title="0r-casinobase/shared/config.lua:9" %}

```lua
Config.Inventory = 'ox_inventory' -- 'qb-inventory', 'lj-inventory', 'ps-inventory', 'qs-inventory', 'tgiann-inventory', 'ox_inventory', 'codem-inventory'
```

{% endcode %}

### Casino Chip Settings

{% code title="0r-casinobase/shared/config.lua:21" %}

```lua
Config.CasinoChip = 'casinochips'
```

{% endcode %}

This setting determines the value of 1 casino chip, by default 1 chip costs 100 dollars, so for example you need 100.000$ dollars to buy 1000 chips

{% code title="0r-casinobase/shared/config.lua:23" %}

```lua
Config.CasinoChipPrice = 100
```

{% endcode %}

### Premium Membership

You set the price that players will pay to buy a premium membership, which is set at $1000 as standard.

{% hint style="warning" %}
If the price is changed from the boss menu, that price will automatically apply and the price set from here will be overridden
{% endhint %}

{% code title="0r-casinobase/shared/config.lua:25" %}

```lua
Config.PremiumMembershipFee = 1000
```

{% endcode %}

With this setting you can set the expiration time of the premium subscription, it is set to 7 days by default and can only be set daily

{% code title="0r-casinobase/shared/config.lua:26" %}

```lua
Config.PremiumMembershipExpireDay = 7
```

{% endcode %}

### Teleport

Since the script works with the bob74\_ipl script as standard and uses its diamond casino map, there is a teleport system, if you don't need a teleport system, you can make `status = false`

```lua
Config.Teleport = {
    status = true,
    enter = {
        coords = vector3(1089.6055, 205.9249, -48.9998),
        heading = 89.82,
    },
    exit = {
        coords = vector3(924.6814, 46.3019, 81.1063),
        heading = 1.0073,
    },
}
```

### Blips

If you use the profession system and the blip settings are changed through the patron menu, the settings set through the patron menu, such as the premium membership price, will be valid and the blip setting set through configuration will be invalid

```lua
Config.Blips = {
    coords = vector3(930.61, 43.0, 81.1),
    name = 'Casino',
    sprite = 617,
    color = 1,
    scale = 0.8,
}
```

### Job Settings

If `enable = false`, the boss menu will automatically close and the money for chips purchased from the cashier will not be transferred to the boss menu.\
\
`grade = 0` is the profession and profession rank that will be automatically given to a player when they are recruited through the boss menu.

```lua
Config.JobSettings = {
    enable = true,
    unemployed = {
        job = 'unemployed',
        grade = 0
    },
    casino = {
        job = 'casino',
        grade = 0
    }
}
```
