> For the complete documentation index, see [llms.txt](https://jota-dev-documentation.gitbook.io/jota-dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jota-dev-documentation.gitbook.io/jota-dev/scripts/coins.md).

# Jota Dev Coins System

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

Don't know how to install the coin system? Watch the video on how to install the system!

**Put in your server.cfg**

```markdown
# JotaDev Coins System
ensure jc_coins
```

**General script settings:**

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

```lua
Config = Config or {}
Config.Framework = "esx" -- qb, esx 
Config.Locales = 'en' -- es | en
Config.Inventory = ''  -- "esx" | esx inventory // "qb" | qb-inventory // "ox" | ox_inventory  // "qs-inventory" | in case you use qs inventory // "origen_inventory" in case you use origen inventory // If your inventory is not here, you can add it in the following path jc_coins/Editable/Server/SMain.lua
Config.GarajeSystem = '' --  "cd_garage" | CD Garage // "qs-garage" | Quasar Garages // "jg-advancedgarages" // "lunar_garaje" | Lunar Garaje  // "qb-garages" // "esx-default"
Config.KeysSystem = '' -- "wasabi_carlock" For Wasabi CarLock // "qs-vehiclekeys" For Quasar Vehicle Keys  // "brutal_keys" For Brutal Keys System // "qb-vehiclekey" For QB Vehiclekeys

Config.Coins = {
    useitem = false, -- Activate or deactivate the option to use the VIP currency item
    itemName = "coins" -- Item name, by default its name is the predefined
}

Config.HourlyCoins = 1 -- Amount of coins per normal hour (Config.TimeToEarn)

Config.CommnadNameConsultarCoins = 'coins' -- Command to check how many coins you have and how much time you have left to obtain the next benefit
Config.TeclaOpenMenuCoins = 'K'

Config.CommandOpenUIAdmin = 'admincoins' -- Command for administrator to open the administrator panel
Config.CommandOpenUIShop = 'tienda' -- Command for administrator to open the administrator panel

Config.ClientOption = true
Config.UseTimer = true -- Change to false if you don't want to use the time system and only the coins you have will be displayed in the interface.
Config.TimeToEarn = 3600 -- Time in seconds to receive coins (1 hour)

Config.DiscordWebhookPurchase = 'YOUR_WEBHOOKS' -- Purchase Logs in the general purchasing panel
Config.DiscordWebhookReceive = 'YOUR_WEBHOOKS' --Logs of players receiving coins from an administrator
Config.DiscordWebhookRemove = 'YOUR_WEBHOOKS' --Logs of when an administrator removes coins from a player or resets their coins to 0

Config.Admin = {
    permissions = {
        useFrameworkGroups = true, -- Use framework permissions to access the admin menu
        useLicenses = false, -- Use the identifiers to access the admin menu
    },

    groups = {-- esx, qb, or qbx groups
        esx = {
            admin = true,
            superadmin = true
        },
        qb = {
            admin = true,
            god = true
        }
    },

    licenses = {
        "license:acbdefghijklmn123455667564363463463463565",
        "license:acbdefghijklmn123455667564363463463463565"
    }
}

if Config.Framework == 'qb' then
    QBCore = exports['qb-core']:GetCoreObject()
elseif Config.Framework == 'esx' then
    ESX = exports["es_extended"]:getSharedObject()
else
    print '^1[^6jc_coins^1] ^2Framework No encontrada, ingrese esx o qb^0'
    return
end

Config.Debug = false


    print '^1[^6jc_coins^1] ^2Framework No encontrada, ingrese esx o qb^0'
    return
end

Config.Debug = false
```

{% endtab %}

{% tab title="SettingConce" %}

```lua
Config.VIPBlip = {
    enabled = true, -- true to show the blip, false to hide it
    sprite = 326,
    scale = 0.8,
    color = 38,
    name = "VIP Dealer"
}

Config.MoneyTypes = {
    {type = "bank",  label = "Bank"},
    {type = "cash",  label = "Cash"},
    {type = "coins", label = "Coins System"}
}

Config.MatriculaVIP = true -- License plates with 'VIP' prefix, in case of false normal random license plate

Config.StaticVehicles = { -- Exhibition cars
    {
        model = "italirsx",
        label = "Italirsx",
        price = 100,
        specs = {
            velocidad = 280,
            aceleracion = 6.5,
            manejo = 6.2
        },
        coords = vector3(120.4028, -155.991, 53.860),
        heading = 27.98
    },
    {
        model = "coquette4",
        label = "Coquette 4",
        price = 40,
        specs = {
            velocidad = 230,
            aceleracion = 9.0,
            manejo = 8.0
        },
        coords = vector3(126.1227, -158.064, 53.860),
        heading = 27.04
    },
    {
        model = "zeno",
        label = "Zeno",
        price = 30,
        specs = {
            velocidad = 310,
            aceleracion = 7.8,
            manejo = 8.8
        },
        coords = vector3(137.3558, -162.500, 53.560),
        heading = 26.44
    },
    {
        model = "tenf",
        label = "Tenf",
        price = 80,
        specs = {
            velocidad = 320,
            aceleracion = 8.3,
            manejo = 9.2
        },
        coords = vector3(131.6864, -160.241, 53.860),
        heading = 26.44
    },
    {
        model = "emerus",
        label = "Emerus",
        price = 70,
        specs = {
            velocidad = 290,
            aceleracion = 9.6,
            manejo = 7.5
        },
        coords = vector3(143.1104, -164.505, 53.860),
        heading = 25.31
    }
}

```

{% endtab %}

{% tab title="SettingTebex" %}

```lua
-- Would you like to have the whole system automated? Great! Then connect our coin system to Tebex!

Config.Tebex = {
    useTebex = true, -- To activate the option to use Tebex, assign true
    commandTebex = 'tebex_addcoins' -- Command to assign coins to players
}
```

{% endtab %}
{% endtabs %}

***

<details>

<summary>If you have any questions or problems, do not hesitate to contact us:</summary>

Discord: [`https://discord.gg/EDuZKM7Zuv`](https://discord.gg/EDuZKM7Zuv)

</details>

***Script interfaces to consider***

* *Command to open the store, by default /tienda, fully configurable from Setting.lua*

<figure><img src="/files/1VLa2tOfjfhwXpd2uROG" alt=""><figcaption></figcaption></figure>

* *Interface for mystery boxes*

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

* *Command to open the administration menu, by default /admincoins, fully configurable from Setting.lua*

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

* *3D interface to view and highlight static vehicles for your dealership*

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

* *Interface to see the coins you have available and your next reward*

<figure><img src="/files/5RY6IysqNqsmereLpfzN" alt=""><figcaption></figcaption></figure>

* *VIP dealer interface to purchase all types of vehicles using the coin system*

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