Getting Started
Configuration
Change the settings to fit your server.
All settings live in the config file inside the script folder. Every option is commented so you know what it does.
Editing the config#
- Open
resources/zolt_txguard/config.luain a code editor (VS Code is recommended). - Change the values you need. Keep the commas and brackets intact.
- Save the file and restart the script.
config.lua· lua
Config = {}Config.Debug = false Config.Core = 'qb-core'Config.Command = 'txg' Config.Managers = { { type = 'discord', id = '775397086416994355' }, { type = 'license', id = 'b346b6378ce2eb8dc1a08a1666bb06cb26bb02c2' },} Config.KickOnViolation = trueConfig.KickReason = 'Unauthorized txAdmin usage detected.' Config.DenyUnknownAdmins = true Config.GuardedActions = { playerMode = true, -- noclip / godmode / superjump freeze = true, -- freezing a player heal = true, -- heal self / heal all / heal target player teleport = true, -- waypoint / coords / to-player / bring-player vehicle = true, -- repair / boost / spawn / delete troll = true, -- drunk / set on fire / wild animal attack spectate = true, clearArea = true, announcement = false, showPlayerIDs = true, } function Config.Notify(src, message, type) TriggerClientEvent('QBCore:Notify', src, message, type or 'primary')endApplying changes#
Restart just this script from the server console or txAdmin:
Server console· bash
restart zolt_txguardWarning
If you see a Lua syntax error after editing, you've most likely removed a comma or a quote. Undo your last change and try again.