Cadburry ScriptsCadburry Scripts

Identifier, API, Tokens & More

Quality of life scripts for your FiveM server. Performance optimized resources that install in minutes, with free updates and support that actually answers.

config/config_server.lua

lua
Config = Config or {}

Config.UseIdentifier = 'discord' -- Ex: steam, discord, license, fivem

Config.SteamAPIKey = 'YOUR_API_KEY' -- only if Config.UseIdentifier == 'steam'
Config.DiscordBotToken = 'YOUR_BOT_TOKEN' -- only if Config.UseIdentifier == 'discord'

Config.PingDisplay = false -- true: enable ping display, false: disable ping display
Config.MaxPlayers = GetConvarInt('sv_maxclients') -- Max players on the server

-- Text Display Options
-- Available formats for GetText and GetTextOverHead:
-- 'identifier'       = Only the player identifier (e.g., discord:123456789)
-- 'name_identifier'  = Name with identifier (e.g., "PlayerName (discord:123456789)")
-- 'name_ping'        = Name with ping (e.g., "PlayerName (45)")
-- 'name'             = Only the player name
-- 'id'               = Only the server ID (e.g., "1")
-- 'citizenid'        = Character ID from framework (e.g., QB citizenid, ESX identifier, OX charId)

Config.TextFormat = 'identifier'       -- Format for the player list text
Config.TextOverHeadFormat = 'id'       -- Format for the overhead text

Config.Jobs = {
    -- job_name = { label: string, icon = string (https://fontawesome.com/search?ic=free), image = string (optional), color = string (hex optional) }
    police = { label = 'Police', icon = 'shield-halved', image = 'https://ru.gtalogo.com/img/4705.webp', color = '#3b82f6' },
    ambulance = { label = 'EMS', icon = 'user-doctor', image = 'https://images.vexels.com/media/users/3/208755/isolated/preview/38b7c15fe7bad7d35ec385d84026f105-emergency-medical-services-badge.png', color = '#ef4444' },
    mechanic = { label = 'Mechanic', icon = 'wrench', image = 'https://static.wikigta.org/nl/images/8/8e/Los_Santos_Customs_logo.png', color = '#FF8044EF' },
    realestate = { label = 'Real Estate', icon = 'house', image = 'https://static.wikia.nocookie.net/degta/images/b/b8/Dynasty8.png/revision/latest/scale-to-width/360?cb=20150427191745', color = '#63ff44ef' },
    cardealer = { label = 'Car Dealer', icon = 'car', image = 'https://legacyrp.company/blips/pdm.png', color = '#ef446cff' },
}
Last updated Cadburry Scripts