Skip to content

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#

  1. Open resources/zolt_txguard/config.lua in a code editor (VS Code is recommended).
  2. Change the values you need. Keep the commas and brackets intact.
  3. 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')end

Applying changes#

Restart just this script from the server console or txAdmin:

Server console· bash
restart zolt_txguard

Warning

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.

Your cart

Your cart is empty.

Browse scripts

Saved Items(0)

No saved items yet

Tap the heart on a product to keep it here.

Browse scripts
Configuration · TxAdmin Guard | Zolt Scripts