Jota Dev Coins System

Here you can see the documentation to learn how to install our store's coin system.

How to start the script for its correct operation:

Put in your server.cfg

# JotaDev Coins System
ensure jc_coins

General script settings:

Config = Config or {}
Config.Framework = "esx" -- qb, esx 
Config.Locales = 'es' -- es | en

Config.HourlyCoins = 1 -- Cantidad de coins por hora normal

Config.CommnadNameConsultarCoins = 'coins' -- Comando para consultar cuantas coins tienes y tiempo que te queda para poder obtener el siguiente beneficio
Config.TeclaOpenMenuCoins = 'K'

Config.CommnadNameAdministrador = 'givecoins' -- [ID] [CANTIDAD] Comando para entregar coin a jugador especifico.
Config.CommnadNameAdministradorRetirarCoins = 'removecoins' -- [ID] [CANTIDAD] Comando para retirar coins a un jugador especifico.

Config.RGBColors = {162, 51, 255} -- Colores para el Chat
Config.ServerName = 'Server Name' -- Nombre de tu server

Config.Notification = "Has recibido %s coins por jugar 1 hora en el servidor." -- Mensaje de notificación
Config.NoPerms = "No tienes permisos para acceder al comando"

-- PERMISOS ESX
Config.Rangos = { 'god', 'superadmin', 'admin', 'mod' }

Config.ClientOption = true

Config.UseTimer = true -- Cambia a false si no quieres usar el sistema de tiempo y solo se verá en la interfaz las coins que tienes
Config.TimeToEarn = 3600 -- Tiempo en segundos para recibir las coins (1 hora)

Config.DiscordWebhook = ''

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

Import the following table in to the database

CREATE TABLE IF NOT EXISTS player_coins (
    citizenid VARCHAR(50) NOT NULL PRIMARY KEY,
    coins INT DEFAULT 0
);

If you want to add more vehicles to the VIP store or modify them, you have to follow the following path:

jc_coins/html/ConfigVehicles/ConfigVehicles:

const VEHICLE_CONFIG = [
  { label: "Zentorno", model: "zentorno", price: 40000, speed: 320, acceleration: 3.5, handling: 9 },
  { label: "T20", model: "t20", price: 45000, speed: 340, acceleration: 3.2, handling: 8.5 },
  { label: "Itali GTO", model: "italigto", price: 48000, speed: 335, acceleration: 3.4, handling: 9 },
  { label: "Pariah", model: "pariah", price: 47000, speed: 350, acceleration: 3.1, handling: 8.7 },
  { label: "Cyclone", model: "cyclone", price: 46000, speed: 330, acceleration: 4.0, handling: 8.9 },
  { label: "Krieger", model: "krieger", price: 50000, speed: 345, acceleration: 3.6, handling: 9.2 },
  { label: "Emerus", model: "emerus", price: 52000, speed: 350, acceleration: 3.5, handling: 9.3 },
  { label: "Tezeract", model: "tezeract", price: 60000, speed: 355, acceleration: 4.2, handling: 9.4 },
  { label: "Dominator GTX", model: "dominator3", price: 27000, speed: 295, acceleration: 3.0, handling: 7.5 },
  { label: "Gauntlet Hellfire", model: "gauntlet4", price: 26000, speed: 300, acceleration: 2.8, handling: 7.8 },
  { label: "Stinger GT", model: "stingergt", price: 22000, speed: 280, acceleration: 2.5, handling: 7.2 },
  { label: "Tornado", model: "tornado", price: 18000, speed: 260, acceleration: 2.0, handling: 6.5 },
  { label: "Dubsta 6x6", model: "dubsta3", price: 30000, speed: 260, acceleration: 2.4, handling: 7.5 },
  { label: "Kamacho", model: "kamacho", price: 29000, speed: 250, acceleration: 2.3, handling: 7.0 },
  { label: "XLS", model: "xls", price: 24000, speed: 265, acceleration: 2.2, handling: 6.8 },
  { label: "Bati 801", model: "bati", price: 15000, speed: 330, acceleration: 3.8, handling: 9 },
  { label: "Hakuchou Drag", model: "hakuchou2", price: 18000, speed: 340, acceleration: 4.0, handling: 9.2 },
  { label: "Cyclone II", model: "cyclone2", price: 55000, speed: 345, acceleration: 4.5, handling: 9.1 },
  { label: "Neon", model: "neon", price: 42000, speed: 320, acceleration: 4.2, handling: 8.8 },
  { label: "Nightshark", model: "nightshark", price: 39000, speed: 290, acceleration: 2.6, handling: 8 },
  { label: "Toreador", model: "toreador", price: 50000, speed: 300, acceleration: 3.5, handling: 8.5 }
];
If you have any questions or problems, do not hesitate to contact us:

Last updated