Vehicle Scripts
ds-rollcoal
π DS Rolling Coal Script for FiveM
A simple and customizable rolling coal script for FiveM with command and menu support.
-- New Options
Config.Debug = false -- true = print debug messages
Config.Framework = "auto" -- qbcore / esx / qbox / standalone / auto
-- Save system: "json" (file) or "oxmysql" (database)
Config.SaveType = "json"
-- JSON: path relative to resource (only used when SaveType == "json")
Config.SaveJsonPath = "data/savecoalstats/savecoalstats.json"
-- oxmysql: table name (only used when SaveType == "oxmysql"). Requires oxmysql resource started before this one.
Config.SaveTableName = "ds_rollcoal_settings"
-- Rolling coal toggle
Config.Enabled = true --Auto Set AllowedVehicles Vehicles To RollCoal
Config.CheckDelay = 200 -- ms between vehicle checks (smoke loop)
-- Command system
Config.UseCommand = true -- This Is For Enableing/Disableing Command (coal)
Config.CommandName = "coal" --Command Name
-- Menu system
--Config.MenuType = "html" -- only work for html only!
Config.MenuUIType = "html" -- "html", "qb", "qbox", "ox", or "auto" (qbox/ox need ox_lib; auto picks qb-menu or ox_lib)
Config.MenuInputType = "qb" -- "qb" (qb-input), "qbox"/"ox" (ox_lib input) β for any future input dialogs
Config.MenuKey = "F7" -- key to open the menu
-- Command to open the HTML menu (only used when MenuType == "html")
Config.OpenMenuCommand = "coalmenu" --UI Command Name
-- Notification system (qb / esx / qbox / ox / okok / ps / custom). Use "qbox" or "ox" when using Qbox.
Config.NotifyType = "ox"
-- Staff command to add vehicles in-game (no restart). ACE permission required.
Config.AddAllowedVehicleCommand = "addcoalvehicle"
Config.AllowedVehicleCommandPermission = "group.admin" -- ACE permission, e.g. "group.admin" or "command.addcoalvehicle"
Config.AllowedVehiclesAdditionsFile = "data/vehicles/allowed_vehicles_additions.json" -- runtime-added vehicles (merged with list below)
-- Allowed vehicles (base list; staff-added vehicles are stored in the file above)
Config.AllowedVehicles = { --You Can Add Any Vehicles Here
"sandking","benson","benson2","biff","cerberus",
"cerberus2","cerberus3","hauler","hauler2",
"mule","mule2","mule3","mule4","mule5",
"packer","phantom","phantom2","phantom3",
"phantom4","pounder","pounder2","stockade","stockade3",
"terbyte","bulldozer","cutter","dump","flatbed","handler",
"mixer","mixer2","rubble","tiptruck","tiptruck2","barracks",
"barracks2","barracks3","vetir","airbus","brickade","brickade2",
"bus","coach","pbus2","trash","trash2","aerocab","blacktop",
"brickades","linerunner","vetirs",}