Jota Dev Halloween
Here you can see the documentation to learn how to install our store's notification system.

Put in your server.cfg
# JotaDev Halloween Rewards
ensure jc_halloween
Configure the script to your liking
Config = Config or {}
Config.Framework = "esx" -- qb, esx
Config.Locale = 'es' -- es | en
Config.SpawnUI = true -- With this function you can configure if you want the UI to be visible when they spawn, if you want it to be hidden when they spawn, set it to false.
Config.RequiredTime = 10 * 3600 -- Time required (in seconds) → 8 hours = 8 * 3600
Config.EventImage = "https://media.discordapp.net/attachments/1034560632013475921/1427706015323000842/coche_halloween.jpg?ex=68efd657&is=68ee84d7&hm=f59033d82f0df8478ead673b1ce083cd75772bd43558fa377ab83e0f8a34e0ea&=&format=webp&width=1536&height=864" -- Your Image 1920 X 1080 PX
Config.Reward = {
type = "vehicle", -- "vehicle" o "item"
vehicle = "adder", -- vehicle model if type is "vehicle"
item = "halloween_box", --item name if type is "item"
amount = 1 -- quantity of the item (if applicable)
}
Config.CommandOcult = 'halloween' -- Command to hide the Halloween UI
Config.DiscordWebhook = "YOUR_WEBHOOK"
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
Database:
CREATE TABLE IF NOT EXISTS `jotadev_time` (
`identifier` VARCHAR(60) NOT NULL,
`time_played` INT DEFAULT 0,
`last_date` DATE DEFAULT NULL,
`claimed` TINYINT(1) DEFAULT 0,
PRIMARY KEY (`identifier`)
);
Put the script on your server and load the database, once the database is loaded configure your framework and the script to your liking to put if you want vehicle or item rewards
Last updated