SCode StudiosSCodeDocs
Tebex Store

Configuration

Configuration of SCode Admin

The configuration files are not encrypted. The bridge/ folder is also open, so you can edit the integrations or write your own.

File

What to configure

config/config.lua

Language, key and command, framework permission mapping, theme, UI options and integration choices.

config/permissions.lua

The ranks created on the first start.

config/modules/

Settings of each feature: reports, staff chat, moderation, vehicles, items, world, gameplay and more.

config/server.lua

Owners, Discord webhook logs and the external API. Keep this file private.

config/server/server.lua

Discord bot credentials for the Discord allowlist modes.

General

Lua
Config.Locale = 'tr'                 -- en, tr, de, fr, es, pt, it, nl, pl, ru, cs or sv
Config.OpenCommand = 'kpanel'        -- Command that opens the admin panel.
Config.OpenKey = 'F10'               -- Default key binding. Players can change it in FiveM settings.

Config.QBAceFallback = true          -- Map framework ACE roles to SCODE ranks for staff without a database record.
Config.QBRankMap = {                 -- QBCore permission to SCODE rank mapping.
    god = 'superadmin',
    admin = 'admin',
    mod = 'mod',
}
Config.SyncQBPermissions = true      -- Grant the rank's qb_permission to QBCore so other QBCore resources can recognize it.

Config.DisabledPages = {}            -- Page IDs to hide, for example { 'map', 'dev' }.
Config.NotifyPosition = 'top-right'  -- top-right, top-left, bottom-right or bottom-left
Config.ClickSounds = true            -- Enable panel click sounds.
Config.ServerName = 'Scode'          -- Server name displayed in the panel.

Config.UI = Config.UI or {}
Config.UI.DefaultTheme = 'classic'   -- classic, vice-sunset, orman, sandy-shores or porselen

Config.RateLimit = { max = 20, per = 5 } -- Allow up to 'max' requests per 'per' seconds per player.

Staff can choose their own language and theme in the panel. Player-facing views use the server's default theme.

Integrations

Config.Bridge chooses which script is used for each category. With 'auto', the first compatible script that is running is used. Set an adapter key to pin one, or 'none' to turn a category off:

Lua
Config.Bridge = {
    framework = 'auto',   -- qbx | esx | qb
    inventory = 'auto',
    clothing = 'auto',
    garage = 'auto',
    police = 'auto',      -- Handcuffs.
    jail = 'auto',        -- Jail and community service.
    chat = 'auto',
    ambulance = 'auto',
    fuel = 'auto',
    keys = 'auto',
    banking = 'auto',     -- Society and job accounts.
}

Run scodebridge in the server console, or open Developer > Bridges in the panel, to see what was selected. The supported scripts are listed on the Integrations page.

Ranks and permissions

config/permissions.lua holds the ranks that are created on the first start, when the ranks table is still empty:

Rank

Weight

QBCore permission

Access

owner

100

god

Everything

superadmin

80

admin

Everything except owner-only permissions

admin

60

admin

Like superadmin, without staff, rank, database, society and settings management

mod

40

mod

Players, teleport, spectate, freeze, revive, kick, warn, temporary bans, reports, staff chat, staff tools, logs

helper

20

–

Players, reports, staff chat, teleport, spectate, noclip, names

After the first start, edit ranks on the Staff page of the panel. Changes in config/permissions.lua are only used when the ranks are created.

Owners, logs and API

config/server.lua:

Lua
ServerConfig.Owners = {
    'license:0000000000000000000000000000000000000000',
    -- 'fivem:0000000',
}

ServerConfig.Logs = {
    discord = {
        enabled = true,
        username = 'SCODE admin',
        avatar = nil,
        channels = {                 -- Webhook URL by category. Blank entries fall back to 'default'.
            default = '',
            staff = '',
            players = '',
            moderation = '',
            reports = '',
            -- self, vehicles, items, economy, world, server, announce, chat, gameplay, npcs, blips
        },
        disabledActions = {},        -- Actions excluded from Discord logging, for example { ['player.teleport_to'] = true }.
    },
    fivemanage = { enabled = false, apiKey = '' },
}

Put a webhook URL in default to send every category to one channel, or fill in the categories one by one.

ServerConfig.Api is an optional HTTP API for external integrations. It stays disabled while token is empty. Leave it empty unless you have an integration that uses it.

Reports and staff chat

config/modules/reports.lua:

Lua
Config.Reports = {
    Command = 'report',
    Categories = { 'player', 'cheat', 'bug', 'help', 'other' },
    MaxOpenPerPlayer = 3,
    CooldownSeconds = 20,
    AutoScreenshot = true,           -- Capture the reporting player's screen automatically.
    SuspiciousThreshold = 3,         -- Flag a player after this many distinct players report them...
    SuspiciousWindowHours = 24,      -- ...within this many hours.
    ImageHosts = { 'i.imgur.com', 'imgur.com', 'cdn.discordapp.com', 'media.discordapp.net', 'r2.fivemanage.com', 'fivemanage.com', 'prnt.sc', 'i.ibb.co' },
    -- message lengths, cooldowns and screenshot limits ...
}

Config.AdminChat = {
    command = 'a',                   -- /a <message> sends a message to staff.
    listenEvent = '',
    historyLimit = 60,
    maxLength = 300,
}

Moderation

config/modules/moderation.lua:

Lua
Config.Moderation = {
    MatchIp = false,            -- Match bans by IP. Shared IP addresses can cause false matches.
    MatchTokens = true,         -- Match bans using hardware tokens.
    SweepMinutes = 5,
    FailClosed = true,          -- Reject connections if the ban check fails.
    PageSize = 20,
    MaxBanSeconds = 315360000,  -- 10 years
}

/restrict <id> (permission mod.restrict) restricts a player: shooting, melee and vehicle controls are disabled and damage from the player is cancelled. The commands and controls are in config/modules/restrict.lua.

Allowlist

The allowlist is turned on in the panel. The modes are license, discord_member and discord_role. The Discord modes need a Discord bot in config/server/server.lua:

Lua
ServerConfig.Discord = {
    botToken = '',   -- Enable Server Members Intent and grant the bot guild member access.
    guildId = '',
}

Staff tools and keys

config/modules/self.lua sets noclip speed, spectate camera, screenshot quality and the default keys of the staff tools:

Lua
Keys = {
    ['self.noclip'] = '0',
    ['self.names'] = '9',
    ['self.blips'] = '8',
    ['self.invisible'] = '7',
    ['self.god'] = '6',
    ['self.infinite_ammo'] = '',
    ['self.coords'] = '',
},

Keys 1–5 are left free for inventory hotbars. The quick menu key (F11) is in config/modules/staff.lua. All keys can be changed by each staff member in GTA Settings > Key Bindings > FiveM.

Other modules

File

Settings

identity.lua

Persistent player IDs and the /id command.

items.lua

Limits for item, money, society and ammo grants, item image path.

vehicles.lua

Add-on models, default garage for given vehicles, list sizes.

server.lua

Protected resources, daily restart times (dailyRestartTimes = { '06:00' }), restart warnings.

world.lua

Weather, time, dynamic and regional weather.

dashboard.lua

Player count snapshots and heat map.

external.lua

Extra Panels shortcuts.

blips.lua, npcs.lua, gameplay.lua, gameplay_player.lua

Map blips, NPC scenarios and gameplay settings.

Using another weather script

SCode Admin has its own weather, time and blackout system. If you use another weather script (cd_easytime, Renewed-Weathersync, qb-weathersync, ...), set WeatherSync = false in config/modules/world.lua:

Lua
Config.World = {
    WeatherSync = false,
    -- ...
}

SCode Admin then doesn't touch weather, time or blackout and hides the Weather and Time tabs. Density, cleanup and the other world tools keep working. If you run the real qb-weathersync, also remove this line from fxmanifest.lua:

Lua
provide 'qb-weathersync'

Extra Panels

config/modules/external.lua lists shortcuts to the admin menus of other scripts. A card is shown when the staff member has its external.* permission and the resource is running. Each card runs the command on the staff member's client, so the other script still checks its own permissions:

Lua
{ id = 'garage', icon = 'Warehouse', command = 'garageadmin', resource = 'jg-advancedgarages', permission = 'external.garage',
  label = { tr = 'Garaj yönetimi', en = 'Garage management' }, labelKey = 'external.panel.garage.label',
  desc = { tr = 'Garajları ve park alanlarını düzenle.', en = 'Edit garages and parking areas.' }, descKey = 'external.panel.garage.desc' },

Last updated: December 6, 2026