--[[ https://codem.gitbook.io/codem-documentation/m-series/madmin-panel ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┃┏━┓┃ ┃┏━━┛ ┃┏━┓┃ ┗┓┏┓┃ ┗┓┏┓┃ ┃┏━┓┃ ┃┏━┓┃ ┃┏━┓┃ ┃┗━┛┃ ┃┗━━┓ ┃┃ ┃┃ ┃┃┃┃ ┃┃┃┃ ┃┃ ┃┃ ┃┃ ┗┛ ┃┗━━┓ ┃┏┓┏┛ ┃┏━━┛ ┃┗━┛┃ ┃┃┃┃ ┃┃┃┃ ┃┃ ┃┃ ┃┃ ┏┓ ┗━━┓┃ ┃┃┃┗┓ ┃┗━━┓ ┃┏━┓┃ ┏┛┗┛┃ ┏┛┗┛┃ ┃┗━┛┃ ┃┗━┛┃ ┃┗━┛┃ ┗┛┗━┛ ┗━━━┛ ┗┛ ┗┛ ┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━━━┛ ┏━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏┓ ┏┓ ┏━┓ ┏┓ ┃┏┓┃ ┃┏━━┛ ┃┏━━┛ ┃┏━┓┃ ┃┏━┓┃ ┃┏━━┛ ┃┏━┓┃ ┃┃ ┃┃ ┃┃┗┓┃┃ ┃┗┛┗┓ ┃┗━━┓ ┃┗━━┓ ┃┃ ┃┃ ┃┗━┛┃ ┃┗━━┓ ┃┗━┛┃ ┃┃ ┃┃ ┃┏┓┗┛┃ ┃┏━┓┃ ┃┏━━┛ ┃┏━━┛ ┃┃ ┃┃ ┃┏┓┏┛ ┃┏━━┛ ┃┏┓┏┛ ┃┃ ┃┃ ┃┃┗┓┃┃ ┃┗━┛┃ ┃┗━━┓ ┃┃ ┃┗━┛┃ ┃┃┃┗┓ ┃┗━━┓ ┃┃┃┗┓ ┃┗━┛┃ ┃┃ ┃┃┃ ┗━━━┛ ┗━━━┛ ┗┛ ┗━━━┛ ┗┛┗━┛ ┗━━━┛ ┗┛┗━┛ ┗━━━┛ ┗┛ ┗━┛ https://codem.gitbook.io/codem-documentation/m-series/madmin-panel ]]-- Config = {} Config.Framework = "esx" -- qb | oldqb | esx | oldesx Config.Debug = false -- true | false Config.LoadedEvent = "esx:playerLoaded" -- qbcore: QBCore:Client:OnPlayerLoaded || esx: esx:playerLoaded Config.AceIdentifier = "license" -- Identifier which you used for assign players to admin [license, steam] Config.Inventory = "codem-inventory" -- codem-inventory | qb-inventory | ox_inventory | qs-inventory Config.DropPlayerOnDoubleConnect = true -- Drop player if his/her account is already in server. (Double Connect Protection) Config.CodeMVehicleShop = true -- true | false Config.DifferentJobGrade = true -- [ESX ONLY] true | false (if you have 'job_grades' table in your database set it true) Config.CustomVehicles = false -- [ESX ONLY] If you don't store your vehicles in 'vehicles' table set it true and edit function to work with yours on 'Source/Server/functions.js (GetAllServerVehicles function)' Config.MaxInventorySlot = 90 -- Your inventories max available slot count. Config.BlackMoney = {} Config.BlackMoney.Type = "with-item" -- with-item | without-item | none Config.BlackMoney.Object = "blackmoney" -- with-item : type your item name (items weight need to be 0) || without-item : type your money type Config.Society = {} Config.Society.System = true Config.Society.Script = "esx" -- qb-old | qb-new | esx (qb-old: qb-management | qb-new: qb-banking) Config.Vehicle = {} Config.Vehicle.PlateSyntax = "0AA000AA" -- "0" for numbers, "A" for strings. Config.Jail = {} Config.Jail.JailCoords = vector3(1748.28, 2545.25, 45.56) -- in jail coord Config.Jail.JailExitCoords = vector3(1850.6,2585.71,45.67) -- out of jail coord Config.Jail.ControlDistance = 200 -- Player coords control distance (Automaticly teleports when distance exceeded) Config.Jail.JailCheckCommand = 'checkjailtime' -- jail time check command for player in jail Config.Fuel = {} Config.Fuel.UsingFuelSystem = true -- set it false if you dont have any fuel system Config.Fuel.System = "x-fuel" -- x-fuel | LegacyFuel Config.CraftableItems = { -- Example -- ["water_bottle"] = { -- requireditems = { -- { -- code = "bottle", -- amount = 1, -- icon = "water_bottle.png" -- } -- }, -- secondsforcraft = 10 -- } } Config.Permissions = { "god", "admin", "mod" } Config.JobCodes = { police = "police", ems = "ambulance", mechanics = { "mechanic" }, law = "doj", ballas = "ballas", tf = "tf", vagos = "vagos" } Config.Functions = {} Config.Functions.SetStress = function(amount, add) TriggerServerEvent("hud:server:RelieveStress", 100) if add then TriggerServerEvent("hud:server:GainStress", amount) else TriggerServerEvent("hud:server:RelieveStress", amount) end end Config.Functions.Announcement = function(message) TriggerClientEvent('chat:addMessage', -1, { template = "
ANNOUNCEMENT | {0}
", args = {message} }) end Config.Functions.SendNotify = function(message, isError, part, source) if part == nil then part = "client" end if part == "client" then if Config.Framework == "qb" or Config.Framework == "oldqb" then local p = nil if isError then p = "error" else p = "primary" end TriggerEvent("QBCore:Notify", message, p) else TriggerEvent("esx:showNotification", message) end elseif part == "server" then if Config.Framework == "qb" or Config.Framework == "oldqb" then local p = nil if isError then p = "error" else p = "primary" end TriggerClientEvent('QBCore:Notify', source, message, p) else TriggerClientEvent("esx:showNotification", source, message) end end end Config.Functions.GetFuel = function(vehicle) local fuelLevel = 0 if Config.Fuel.UsingFuelSystem then if Config.Fuel.System == "x-fuel" then fuelLevel = exports['x-fuel']:GetFuel(vehicle) elseif Config.Fuel.System == "LegacyFuel" then fuelLevel = exports["LegacyFuel"]:GetFuel(vehicle) end else fuelLevel = GetVehicleFuelLevel(vehicle) end return fuelLevel end Config.Functions.SetFuel = function(vehicle, value) if Config.Fuel.UsingFuelSystem then if Config.Fuel.System == "x-fuel" then exports["x-fuel"]:SetFuel(vehicle, value) elseif Config.Fuel.System == "LegacyFuel" then exports["LegacyFuel"]:SetFuel(vehicle, value) end else SetVehicleFuelLevel(vehicle, value) end end