Agency-Essentials Configuração
O bundle Agency completo: Agency-Notify 2.5, Agency-Progressbar 2.5, Agency-Elevator 1.5, Agency-Reports V2.

01Configuração
Instalação rápida · config.lua · Agency-Essentials
--[[
╔══════════════════════════════════════════════════════════════════════╗
║ AGENCY ESSENTIALS - CONFIGURATION ║
║ (c) Agency Scripts ║
╚══════════════════════════════════════════════════════════════════════╝
CONTENTS
1. Agency Companion The free app for your players, accent colour
2. Core Language, framework, debug
3. Modules Switch single modules on or off
4. Admin Menu Who may open /aessentials
5. Branding Your own name, logo and command names
6. Discord Webhooks One router for every module
7. Notify Notifications (Agency Notify 2.5)
8. Progressbar Progress bars, food, drinks, reloading (2.5)
9. Elevator Elevators and the in-game configurator (1.5)
10. Doorlock Lockable doors, in-game setup
11. Reports Player reports and the admin dashboard
Notify, Progressbar, Elevator, Reports and Doorlock in one resource,
ad-free and re-brandable. Most settings can also be changed in game:
/aessentials (admins).
Discord: https://discord.gg/RTax3aBMUs · Shop: https://agencyscripts.dev
]]
AgencyConfig = AgencyConfig or {}
--==============================================================================
-- 1 · AGENCY COMPANION
--==============================================================================
-- Agency Companion app (free):
-- iPhone, iPad and Mac: https://apps.apple.com/app/id6778632140
-- Android: https://play.google.com/store/apps/details?id=de.agencyg.companion
-- Web app (browser): https://companion.agencyg.de/app
-- Agency-Companion script (free resource, one /app code for every Agency script): https://shop.agencyg.de/en/product/agency-companion
-- Put the free Agency-Companion resource next to Essentials. Your players type
-- /app and link Elevator, Doorlock and Reports with ONE code in the free Agency
-- Companion app (iPhone, iPad, Android, Mac, browser), admins also get the
-- Essentials admin link. Your admins pick one accent colour for all Agency
-- scripts in game (/app, admin page) and Notify, Progressbar and Elevator
-- follow it. Without that resource the menus show a short download hint.
AgencyConfig.Companion = {
Enabled = true, -- connect with Agency-Companion (app links + accent colour)
DownloadUrl = 'https://agencyscripts.dev/en/product/agency-companion',
-- Accent colour of Notify, Progressbar and Elevator
-- false = the colour from Agency-Companion, gold without it
-- { r,g,b } = a fixed colour for Essentials only, e.g. { 0, 190, 255 }
-- Players can still pick their own colour in the menus.
AccentColor = false,
Remote = true, -- linked phones may use the modules from anywhere
RelayUrl = 'https://api.agencyg.de', -- Agency relay, do not change unless told to
TokenTTL = 300, -- seconds a link code stays valid
}
--==============================================================================
-- 2 · CORE
--==============================================================================
-- ── Language ─────────────────────────────────────────────────────────────────
-- Every module: notifications, menus, elevator panel, reports, doorlock.
-- en de fr es esm pt it nl pl cs ro ru tr sv da no fi hu sk hr bg uk el ja ko zh
-- Admins can change it in game (/aessentials > Global); that choice wins.
AgencyConfig.Global = {
Language = 'en',
Debug = false, -- extra prints in F8 for every module
}
-- ── Framework ────────────────────────────────────────────────────────────────
-- 'auto' = QBCore, then ESX, then standalone | 'qb' | 'esx' | 'standalone'
AgencyConfig.Framework = 'auto'
--==============================================================================
-- 3 · MODULES
--==============================================================================
-- Starting values only. Admins switch modules in game (/aessentials > Global),
-- that choice is saved in the database (agency_module_states) and wins.
-- A module that is off does nothing for anyone (its commands, exports and
-- events are ignored).
AgencyConfig.Modules = {
Notify = true,
Elevator = true,
Reports = true,
Progressbar = true,
Doorlock = true,
}
--==============================================================================
-- 4 · ADMIN MENU
--==============================================================================
-- Who may open /aessentials (and flip the module switches). By default any of:
-- the `command` ace (group.admin has it), `command.aessentials_admin`,
-- `command.aessentials_webhook`, QBCore admin/god/superadmin,
-- ESX admin/superadmin/god/owner.
-- RequireExplicitAce = true: only the three aces, framework groups are ignored.
AgencyConfig.Aessentials = {
RequireExplicitAce = false,
}
--==============================================================================
-- 5 · BRANDING
--==============================================================================
-- Enabled = true: the values below replace the Agency name, logo, titles and
-- command names everywhere (empty fields keep the default).
-- Enabled = false: the stock Agency branding is used.
AgencyConfig.Branding = {
-- Master switch — flip to true to apply your custom branding
Enabled = false,
---------------------------------------------------------
-- Text / visuals (only used when Enabled = true)
---------------------------------------------------------
Name = 'Agency Essentials', -- header + menu title
Tagline = 'Unified configuration for every module', -- subtitle under the header
ThankYouLine = 'Thanks for purchasing Agency Essentials!', -- server-console startup line
Version = '1.5.0', -- small badge in the menu header
-- Branding visuals. Paths are relative to the resource root.
-- "html/branding/logo.png" maps to nui://Agency-Essentials/html/branding/logo.png
Logo = {
Path = 'html/branding/logo.png', -- replace this file (or change the path) for your logo
ShowInMenu = true, -- render the logo as the /aessentials header icon
},
-- Console-print colour prefix (FiveM colour code, '^2' = green)
ConsolePrefixColor = '^2',
---------------------------------------------------------
-- Command names (only applied when Enabled = true).
-- Set any field to nil or '' to keep the default.
---------------------------------------------------------
Commands = {
Essentials = 'aessentials', -- unified settings menu
Elevator = 'aelevator', -- elevator main menu (admin-only)
Report = 'areport', -- player report UI
AdminReport = 'areports', -- admin reports dashboard
TestProgress = 'agencyprogressbar', -- dev: progressbar test
TestProgressAlt = 'testprogress', -- dev: progressbar test alt
TestNotify = 'testnotify_singularity', -- dev: notify test
},
---------------------------------------------------------
-- Notification titles emitted by each module when it shows
-- a user-facing toast (Agency Notify / framework notify).
---------------------------------------------------------
Notify = {
ElevatorTitle = 'Agency Elevator',
ReportsTitle = 'Agency Reports',
ProgressbarTitle = 'Agency Progressbar',
},
}
--==============================================================================
-- 6 · DISCORD WEBHOOKS
--==============================================================================
-- One router for every module: AgencyWebhook.Send(event, payload).
-- Enabled is the master switch, every event has its own switch, URL and role.
-- URLs stay on the server; admins with `command.aessentials_webhook` can set
-- them in game (/aessentials > Webhooks), which wins over these values.
AgencyConfig.Webhooks = {
Enabled = false, -- master switch; flip to true to enable routing
Username = 'Agency Essentials', -- name that shows up in Discord
AvatarUrl = '', -- optional avatar image URL
-- Token-bucket throttle so one noisy server doesn't flood the webhook
-- and trip Discord's rate limit (5 posts / 5s per webhook).
RateLimit = { Max = 5, WindowMs = 5000 },
Events = {
new_report = {
Enabled = true,
URL = '', -- e.g. 'https://discord.com/api/webhooks/xxx/yyy'
RoleMention = '', -- e.g. '<@&111111111111111111>'
Color = 0x58A6FF, -- embed accent colour
},
report_claimed = {
Enabled = true,
URL = '',
RoleMention = '',
Color = 0x3CB371,
},
report_closed = {
Enabled = true,
URL = '',
RoleMention = '',
Color = 0xE74C3C,
},
elevator_created = {
Enabled = true,
URL = '',
RoleMention = '',
Color = 0x9B59B6,
},
elevator_edited = {
Enabled = true,
URL = '',
RoleMention = '',
Color = 0x9B59B6,
},
elevator_deleted = {
Enabled = true,
URL = '',
RoleMention = '',
Color = 0x95A5A6,
},
server_startup = {
Enabled = true,
URL = '',
RoleMention = '',
Color = 0x1ABC9C,
},
},
}
--==============================================================================
-- 7 · NOTIFY
--==============================================================================
-- Use it from any script:
-- exports['Agency-Essentials']:Notify({ title = 'Bank', text = 'Paid $50', type = 'success' })
-- TriggerClientEvent('Agency:Notify:Send', source, { title = '...', text = '...', type = 'info' })
AgencyConfig.Notify = {
-- If true, player preferences are saved to and loaded from the database.
-- Requires oxmysql. Set to false to disable all DB usage.
UseDatabase = true,
-- Command players use to open the in-game settings menu.
MenuCommand = 'anotify',
-- Smart Mode: simple fixed rules. Priority from keywords, spam protection
-- for repeated messages and a reading time that follows the text length.
SmartMode = {
enabled = true, -- Master toggle for all smart features
smartPriority = true, -- Auto-detect priority from keywords (error/warning = urgent)
spamProtection = true, -- Suppress duplicate notifications within cooldown window
spamCooldown = 2000, -- Cooldown in ms before same notification can repeat
smartDuration = true, -- Auto-scale duration based on text length
minDuration = 3000, -- Minimum duration in ms
maxDuration = 15000, -- Maximum duration in ms
charsPerSecond = 12, -- Reading speed used for smart duration calculation
},
-- Default settings applied for every player.
Defaults = {
position = 'center-right',
durationModifier = 1.0,
accentColor = 'agency', -- agency (section 1) | blue | orange | purple | pink | green | red | cyan | gold
notifScale = 1.0, -- not used any more (fits every resolution by itself)
notifStyle = 'agency' -- 'agency' (2.5, like Agency-Housing) | 'v2' (ultra) | 'v1' (classic)
},
-- ------------------------------------------------------------
-- NOTIFICATION SOUND PACK
-- 12 bundled GTA-native sounds. Pick one per notify type, or 'none'
-- for silent. Players can override via /aessentials Notify tab and
-- their in-game pick wins over these config defaults.
-- ------------------------------------------------------------
Sounds = {
Enabled = true, -- master toggle for all notification sounds
Volume = 0.5, -- 0.0 - 1.0 default volume (per-player override possible)
-- Defaults per type (sound id, see the ids defined in client/notify.lua's SOUND_PACK).
-- Set to 'none' to mute a specific type.
Info = 'soft_click',
Success = 'success_ding',
Error = 'error_buzz',
},
}
--==============================================================================
-- 8 · PROGRESSBAR
--==============================================================================
AgencyConfig.Progressbar = {
-- Persist per-player settings to DB
UseDatabase = false,
-- Command for in-game settings menu
MenuCommand = 'aprogressbar',
-- Debug
Debug = { enabled = false },
-- General
EnableAnimations = true,
MaxProgressTime = 300000, -- 5 min
-- Notifications
Notifications = {
enabled = true,
AgencyNotify = {
enabled = true,
defaultTitle = 'Agency Progressbar',
defaultDuration = 6000,
typeDurations = {
success = 6000,
error = 6000,
info = 6000
}
}
},
-- Per-player defaults (DB fallback)
Defaults = {
position = 'bottom-center',
accentColor = 'agency', -- agency (section 1) | blue | orange | purple | pink | green | red | cyan | gold
barScale = 1.0, -- not used any more (fits every resolution by itself)
barStyle = 'agency', -- 'agency' (2.5, like Agency-Housing) | 'v2' (liquid glass) | 'v1' (classic)
smartModeEnabled = true, -- Smart Mode: tidier labels and adaptive time display (simple rules)
},
-- UI fallbacks for scripts that don't pass options
UI = {
position = 'bottom-center',
theme = 'modern',
showPercentage = true,
showTimer = true,
allowCancel = true,
cancelKey = 'X'
},
-- Animations
Animations = {
useCustomAnimations = true,
disableMovement = false,
disableCombat = true,
disableCarMovement = false,
disableMouseControl = false,
},
-- Framework
Framework = {
autoDetect = true,
manualFramework = 'standalone',
timeout = 5000
},
-- Usable item registration master toggle
Usables = {
enable = true
},
-- Consumables (food / drink)
Consumables = {
food = {
['burger'] = {
add = 30, dur = 6000,
anim = { dict = 'mp_player_inteat@burger', name = 'mp_player_int_eat_burger', flag = 49 },
prop = { enable = true, model = 'prop_cs_burger_01', pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) }
},
},
drink = {
['water'] = {
add = 30, dur = 6000,
anim = { dict = 'mp_player_intdrink', name = 'loop_bottle', flag = 49 },
prop = { enable = true, model = 'prop_ld_flow_bottle', pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) }
},
['water_bottle'] = {
add = 30, dur = 6000,
anim = { dict = 'mp_player_intdrink', name = 'loop_bottle', flag = 49 },
prop = { enable = true, model = 'prop_ld_flow_bottle', pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) }
},
['ecola'] = {
add = 30, dur = 6000,
anim = { dict = 'mp_player_intdrink', name = 'loop_bottle', flag = 49 },
prop = { enable = true, model = 'prop_ecola_can', pos = vec3(0.0, 0.0, 0.0), rot = vec3(0.0, 0.0, 0.0) }
},
}
},
-- Reload / Ammo
Reload = {
AmmoItems = {
AMMO_PISTOL = { item = 'pistol_ammo', add = 12, duration = 2500 },
AMMO_SMG = { item = 'smg_ammo', add = 30, duration = 3000 },
AMMO_MG = { item = 'mg_ammo', add = 45, duration = 3500 },
AMMO_RIFLE = { item = 'rifle_ammo', add = 30, duration = 3250 },
AMMO_SHOTGUN = { item = 'shotgun_ammo', add = 8, duration = 3200 },
AMMO_SNIPER = { item = 'sniper_ammo', add = 5, duration = 4000 },
AMMO_STUNGUN = { item = 'stungun_ammo', add = 1, duration = 1500 },
AMMO_FLARE = { item = 'flare_ammo', add = 1, duration = 2500 },
AMMO_STINGER = { item = 'stinger_ammo', add = 1, duration = 4500 },
AMMO_GRENADELAUNCHER = { item = 'gl_ammo', add = 1, duration = 4500 },
},
Animation = nil,
ClientOnly = true,
DisableQBProgressbar = true,
WeaponOverrides = {
-- [joaat('weapon_pistol_mk2')] = { duration = 2800, add = 16 },
}
}
}
--==============================================================================
-- 9 · ELEVATOR
--==============================================================================
-- Elevators are created in game with /aelevator and stored in the database.
AgencyConfig.Elevator = {
-- Framework: 'auto' | 'qb' | 'esx' | 'standalone'
Framework = 'auto',
-- Design: 'agency' = the Agency design (like Agency-Housing), fits every screen by itself
-- 'classic' = the liquid glass look from 1.3
-- Admins can switch it in game too (/aessentials > Elevator).
Design = 'agency',
-- Text UI system: 'default' | 'jg-textui'
TextUISystem = 'default',
-- Notification system: 'agency-notify' | 'framework'
NotifySystem = 'agency-notify',
-- Key to interact with elevator (default: E)
InteractKey = 38,
-- Distance to show marker / interact
MarkerDistance = 15.0,
InteractDistance = 2.0,
-- Marker settings
Marker = {
type = 20,
scale = vec3(0.5, 0.5, 0.3),
color = false, -- false = accent colour (section 1), or {r = 0, g = 190, b = 255, a = 180}
bobUpAndDown = true,
rotate = true,
},
-- Travel time in ms (simulated elevator travel)
TravelTime = 1000,
-- Screen effect during travel
ScreenEffect = true,
-- Skip animation and simulated travel wait time (instant teleport)
-- Useful when ScreenEffect is false – no fade means no reason to wait
SkipAnimation = false,
-- Ding sound on arrival (GTA native sound)
DingSound = true,
-- Configurator command (admin only)
ConfiguratorCommand = 'aelevator',
-- Ace permission for configurator (set to false to allow everyone)
ConfiguratorPermission = 'command.aelevator',
-- Populated at runtime from DB
Elevators = {},
DBLoaded = false,
}
--==============================================================================
-- 10 · DOORLOCK
--==============================================================================
-- Doors are created in game with /adoorlock (alias /adl) and stored in the database.
AgencyConfig.Doorlock = {
-- Framework: 'auto' | 'qb' | 'qbx' | 'esx' | 'standalone'
-- auto (recommended): detects QBox (qbx_core), QBCore, ESX automatically.
-- Job / Gang locks with grades are enforced on QBCore, QBox and ESX.
-- Standalone enforces "everyone" and per-player (identifier) access only.
Framework = 'auto',
-- Notification system: 'agency-notify' | 'framework' | 'none'
-- agency-notify (default): https://shop.agencyg.de
-- framework: uses the QBCore / ESX built-in notification
NotifySystem = 'agency-notify',
-- ============================================================
-- INTERACTION
-- ============================================================
-- How players toggle a lock: 'key' | 'target' | 'both'
-- key : press a key (Config.InteractKey) while standing at the door (uses Text UI)
-- target : ox_target / qb-target eye option
-- both : key prompt AND a target option (recommended)
Interaction = 'both',
-- Key used when Interaction is 'key' or 'both' (default: E = 38)
InteractKey = 38,
InteractKeyLabel = 'E', -- shown on the prompt keycap
-- Debug: prints access-check details to the server console (set false in production).
Debug = false,
-- Target system used when Interaction is 'target' or 'both': 'ox_target' | 'qb-target'
TargetSystem = 'ox_target',
-- Text UI system for the [E] prompt: 'default' | 'jg-textui'
-- default : built-in 3D text drawn natively (no dependency)
-- jg-textui: https://github.com/jgscripts/jg-textui
TextUISystem = 'default',
-- How close the player must be to interact with / see the prompt of a door.
-- Each door can override this in the setup UI (big garage doors and gates
-- need more). Doors without an override use the value here.
InteractDistance = 1.6,
-- Upper limit for the per-door override, so a mistyped value can't make a door
-- operable from across the map. Enforced server-side when the door is saved.
MaxInteractDistance = 50.0,
-- Global master switch for the [E] prompt HUD. Leave true normally — hiding the
-- prompt for SPECIFIC doors is done per-door in the setup UI ("Hide [E] prompt").
-- Auto-lock is also configured per-door in the setup UI.
ShowPrompt = true,
-- How close a door must be before the script starts drawing its prompt (perf).
DrawDistance = 12.0,
-- Auto-detect a second door leaf when registering (double doors). Disabled by
-- default — click each leaf you want instead. Set > 0 to re-enable auto-pairing.
DoubleDoorDistance = 0,
-- During setup a marker sits in front of you (where you look). Aim it at a door
-- and press [E]. Only door-shaped objects are accepted (see Config.DoorDetect).
SetupRayDistance = 7.0, -- how far in front the selector reaches
-- Only allow door-like objects to be selected (not every prop). Doors are detected
-- by their shape: tall, fairly wide, but thin. Set false to allow ANY object.
OnlyDoors = true,
DoorDetect = {
minHeight = 1.2, -- door must be at least this tall (m)
maxHeight = 5.0, -- ... and at most this tall (covers gates/garage doors)
maxThickness = 0.6, -- thinnest horizontal side must be <= this (doors are thin)
minWidth = 0.5, -- widest horizontal side range
maxWidth = 5.0,
},
-- Auto-detect the nearest door. The "Auto-detect" button in the setup panel
-- picks the door-shaped prop CLOSEST to you (anywhere around you) by plain
-- geometry and pulls in its second leaf for double doors. One click, no aiming.
AutoDetect = {
radius = 2.0, -- detect doors within this distance ALL AROUND you (m)
pairDistance = 3.0, -- double doors: pull in the 2nd leaf within this distance of the nearest door. Generous on purpose — maxDoors caps it (0 = single only)
maxDoors = 2, -- cap per scan (1 = single door, 2 = a double door's two leaves)
},
-- Locking behaviour:
-- true (default): a locked door is always closed & locked (reliable).
-- false: a locked door that's open stays movable until it swings shut, then latches.
LockClosesDoor = true,
-- Hold open (garage doors, shutters, gates). Tick "Hold open" on a door in the
-- setup UI: unlocked = the gate opens and STAYS open, locked = it closes and locks.
-- How far the gate travels while held open. 1.0 = fully open. Lower it for
-- shutters that clip into geometry when fully raised (e.g. 0.9).
HoldOpenRatio = 1.0,
-- How close a player has to be for the hold to be re-applied. The game rolls
-- these doors shut every time they stream back in, so cover the visible range.
HoldOpenDistance = 60.0,
-- Play a real door-lock sound on toggle (shipped html/doorlock/lock.wav & unlock.wav,
-- played through the NUI). Heard by players near the door.
PlaySound = true,
SoundVolume = 0.5, -- 0.0 - 1.0
-- Lock / unlock animation played on the player who toggles the door.
-- A short forward hand-reach (works without a prop). Swap dict/name for any anim.
Animation = {
enabled = true,
dict = 'anim@heists@keycard@',
name = 'exit',
duration = 1100, -- ms
},
-- ============================================================
-- SETUP / PERMISSIONS
-- ============================================================
-- Command to open the in-game door setup mode (aim at a door -> add -> configure).
SetupCommand = 'adoorlock',
-- Short alias for the same setup command (leave '' to disable). Default: /adl
SetupCommandAlias = 'adl',
-- Who may open the setup mode and create / delete doors.
-- 'ace' : requires the ACE permission Config.SetupAce (server-sided, secure)
-- 'admin' : requires QBCore/ESX admin/god (or ace 'command' as fallback)
-- 'job' : requires one of the jobs in Config.SetupJobs
SetupPermission = 'admin',
SetupAce = 'agency.doorlock', -- used when SetupPermission == 'ace'
SetupJobs = { ['mechanic'] = 0 }, -- used when SetupPermission == 'job' (job = min grade)
-- ============================================================
-- VISUALS
-- ============================================================
Colors = {
locked = { r = 255, g = 72, b = 72 }, -- red
unlocked = { r = 0, g = 255, b = 136 }, -- green
accent = { r = 0, g = 212, b = 255 }, -- cyan (setup highlight)
},
-- Marker shown on configured doors (the red/green dome). Helps players spot
-- lockable doors. Coloured red while locked, green while unlocked.
Marker = {
enabled = false, -- no dots on doors (the nice [E] prompt shows when close)
type = 28, -- 28 = dome/half-sphere
distance = 12.0, -- draw the marker permanently within this range of a door
size = vec3(0.18, 0.18, 0.18), -- small & unobtrusive
alpha = 90,
bob = false,
onlyWhenLocked = false, -- true = only show the marker on locked doors
},
-- ============================================================
-- STATIC DOORS (optional)
-- ============================================================
-- Most doors should be created in-game with /adoorlock (stored in the database).
-- You can ALSO predefine doors here; they are merged with the database doors.
-- Each leaf = { model = <hash>, coords = vec3(x, y, z) }
--
-- Example:
-- StaticDoors = {
-- {
-- label = 'Police Cell 1',
-- locked = true,
-- doors = {
-- { model = `v_ilev_ph_cellgate`, coords = vec3(441.1, -998.6, 25.0) },
-- },
-- access = {
-- everyone = false,
-- jobs = { { name = 'police', grade = 0 } },
-- gangs = {},
-- players = {}, -- list of citizenids / identifiers
-- },
-- },
-- }
StaticDoors = {},
}
--==============================================================================
-- 11 · REPORTS
--==============================================================================
AgencyConfig.Reports = {
-- Framework: 'auto', 'standalone', 'esx', 'qb'
Framework = 'auto',
-- Commands
Commands = {
Report = 'areport',
AdminUI = 'areports',
},
-- Permissions
AdminGroups = {
['admin'] = true,
['superadmin'] = true,
['mod'] = true,
['god'] = true
},
-- Report Categories
Categories = {
{ value = 'vdm', label = 'VDM' },
{ value = 'rdm', label = 'RDM' },
{ value = 'failrp', label = 'FailRP' },
{ value = 'support', label = 'General Support' },
{ value = 'bug', label = 'Bug Report' },
{ value = 'other', label = 'Other' }
},
-- Notifications
Notifications = {
Duration = 8000,
Type = 'info',
UseAgencyNotify = true,
PlaySound = true
},
-- Logging / Debug
Logging = {
LogCommands = true
},
-- Discord Webhook & Invite Button
Discord = {
Enabled = false,
Webhook = {
Url = '',
MentionRoleId = '',
Username = 'Agency Reports',
AvatarUrl = ''
},
Invite = {
Enabled = false, -- set true and fill Link with YOUR Discord to expose a button
Link = ''
}
}
}
+Bom saber
Esta página explica como configurar o Agency-Essentials usando sua estrutura modular de configuração. Cada módulo incluído, Notify, Elevator, Reports, Progressbar e Doorlock, possui seu próprio namespace de configuração, permitindo ajustar as configurações de cada funcionalidade independentemente. Após fazer alterações, sempre reinicie o recurso Agency-Essentials para aplicar suas atualizações. Certifique-se de que todas as dependências estejam atendidas antes de editar a configuração.
- Estrutura do namespace de configuração
- Cada módulo usa seu próprio namespace de configuração: AgencyConfig.Notify, AgencyConfig.Elevator, AgencyConfig.Reports, AgencyConfig.Progressbar e AgencyConfig.Doorlock. Isso mantém as configurações organizadas e garante que cada funcionalidade se comporte exatamente como sua versão independente. Edite o namespace relevante para ajustar as opções específicas do módulo.
- Kill-switches de módulo e branding
- Você pode ativar ou desativar módulos individuais via seus namespaces de configuração. O recurso é totalmente rebrandável, sem marcas d'água ou branding forçado. Ajuste a cor de destaque global na configuração para combinar com o estilo do seu servidor.
- Opções de webhook e idioma
- Um roteador central de webhook do Discord está incluído. O recurso suporta 26 idiomas com troca ao vivo.
?Perguntas frequentes
Quais dependências devem ser instaladas antes de configurar o Agency-Essentials?
O oxmysql é necessário para que os módulos Reports e Doorlock funcionem. Se você usar esses módulos, certifique-se de que o oxmysql esteja em execução antes de iniciar o Agency-Essentials. QBCore ou ESX são opcionais; o recurso funciona imediatamente sem eles. Sempre verifique as dependências antes de editar a configuração.
Como desativo um módulo específico?
Cada módulo pode ser desativado usando seu próprio namespace de configuração. Procure a configuração relevante em AgencyConfig.Notify, AgencyConfig.Elevator, AgencyConfig.Reports, AgencyConfig.Progressbar ou AgencyConfig.Doorlock. Desativar um módulo aqui impedirá que ele seja carregado quando o recurso iniciar.
Preciso reiniciar o recurso após alterar a configuração?
Sim, após fazer qualquer alteração na configuração, você deve reiniciar o recurso Agency-Essentials para que as mudanças tenham efeito. Use 'ensure Agency-Essentials' no seu server.cfg para gerenciar a inicialização do recurso.
O que devo fazer se um módulo não funcionar após a configuração?
Primeiro, verifique se todas as dependências necessárias estão em execução, especialmente o oxmysql para Reports e Doorlock. Revise suas alterações na configuração para erros no namespace relevante. Se os problemas persistirem, confirme que você reiniciou o Agency-Essentials após editar a configuração.