Tutorial / Basics

Console Commands

Every kgxat_ console command in the toolbox, grouped by who can run it, with what each one does.

What it does

The toolbox adds console commands that start with kgxat_. Players use them to open menus or bind keys. Admins use them for actions on the whole map, such as locking every door. Some are meant for the server console, for example to unban yourself.

Commands you run from your own console can be bound to a key with bind <key> <command>. Settings > Keybinds covers the common keys without the console.

Where to find it

Open your game's developer console and type the command. Server owners can also type server commands in the server console or over rcon.

Who can run a command is listed in each table. "Admins" means toolbox admins; see the Getting Started guide.

The commands

Your game (client)

These run on your own computer. Anyone can type them.

Command What it does
kgxat_atb Opens the ATB window (quick functions and settings) outside the C menu
kgxat_thirdperson Toggles third person (admin only when kgxat_thirdperson_all is 0)
kgxat_camera_toggle Shows or hides the camera viewport
kgxat_camera_next Switches the viewport to the next camera
kgxat_camera_remote Turns camera remote control on or off (arrow keys turn the camera)
kgxat_backpack_open Opens or closes your backpack
kgxat_vote <number> Votes in the running vote
kgxat_vote <A/B/C> <number> Votes in one of several running votes
kgxat_voice Picks the lines on your voice wheel
kgxat_mylicenses Lists the licenses you have in chat
kgxat_stopmusic Stops music started by logic
kgxat_sounds Opens the sound browser (every sound of the mounted games)
kgxat_sounds_livewindow Opens the live sound viewer (every sound playing now, and the map's sounds)
kgxat_readme Opens the README window
kgxat_patchnotes Opens the patch notes window
kgxat_vision_toggle Toggles Admin Vision (it only draws for players with Admin Vision access)
kgxat_phone Opens the phone book
kgxat_laws Opens the laws window
kgxat_mayor <command> [text] The Mayor's chat commands from the console (laws, addlaw, lockdown, wanted...)
kgxat_phone_toggle Opens or closes the phone book; answers a ringing call (the phone key runs it)
kgxat_spectate_stop Stops spectating
kgxat_scan Prints the compatibility scan of your game; toolbox admins also get the server part
kgxat_stats [tab] Opens Match stats (tabs: me, top, history, ach, cosmetics)
Players (server)

These ask the server to do something for you. Anyone can type them, but the feature behind them must be on.

Command What it does
kgxat_hub [tab] Opens the server hub; tabs: scoreboard, players, jobs, stats, matchstats, store, keys, help, links, admin
kgxat_jobs Opens the jobs menu (RP mode with jobs on)
kgxat_loadout_menu Picks a loadout (outside RP mode)
kgxat_look Picks your citizen look and colors
kgxat_build Toggles Build/PvP mode; kgxat_build 1 = Build, kgxat_build 0 = PvP
kgxat_bank Opens your bank
kgxat_money Shows your wallet and bank
kgxat_dropmoney <amount> Drops a cash pile
kgxat_givemoney <amount> Gives money to the player you look at
kgxat_blackmarket Opens the black market (Black Market Dealer job, or admins)
kgxat_unjailme Leaves the jail you put yourself in
kgxat_givekeys Gives you your Keys (when keys are on)
kgxat_voicesay <set id> <line number> Says a voice line
kgxat_unincognito Gives an incognito admin their rank, name and model back
kgxat_join / kgxat_leave Joins or leaves the Game Modes match
kgxat_ready Marks you ready in the match lobby
kgxat_sitout Sits out the next matches (again to play)
kgxat_class / kgxat_buy The match class picker or buy menu
kgxat_taunt Game Modes: hiders make a sound
Admins
Command What it does Who
kgxat_incognito Play as a normal player (rank "user", optional other name and model) until kgxat_unincognito or rejoining Admins
kgxat_access Opens the Access window of the aimed door, keypad, button, chair, camera or permanent entity Admins
kgxat_unblockme Removes spawn menu block, blind, gag, mute and freeze from yourself (superadmins also leave jail) Admins
kgxat_buff <player> <buff id> Gives a player a buff Admins, server console
kgxat_givefood <buff id> [count] Gives you a food, drink or drug item (count 1-50) Admins
kgxat_paint_clear [SteamID] Removes all spray paint, or only the paint of that SteamID Admins, server console
kgxat_decals_clear [all] Clears decals for everyone; all also forgets the kept ones Admins, server console
kgxat_licenses [name] Lists the licenses in the console (and which ones a player has) Admins, server console
kgxat_scanranks Scans every rank and sends the list to every player's rank pickers Admins, server console
kgxat_givekeys admin Gives you Admin Keys Admins, or Keys tool access
kgxat_givekeys all Everyone gets the keys they should have Admins, or Keys tool access
kgxat_mapdoors lock / unlock / default Sets every map door (not bought) locked, unlocked or back to the map's own lock; saved for this map Admins, Keys tool access, server console
kgxat_doors open / close + all / unbought / bought Opens or closes doors, locked ones too; locks stay Admins, Keys tool access, server console
kgxat_resetdoors health / states Every door's health back to full, or every door closed with its normal lock (owners kept) Admins, Property tool access, server console
kgxat_unbreakable_doors 1 / 0 Every map door unbreakable (1) or breakable again (0), saved for this map Admins, Unbreakable tool access, server console
kgxat_physblock_map <mode> Physics gun block on every map prop: 0 = off, 1 = everyone, 2 = players only, 3 = toolbox admins only, 4 = certain ranks; saved for this map Admins, Physgun Block tool access, server console
kgxat_match_start <mode id> Opens a Game Modes lobby for a mode Game Modes panel access, server console
kgxat_match_force Starts the lobby now Game Modes panel access, server console
kgxat_match_end Ends the match Game Modes panel access, server console
Superadmins and the server console
Command What it does
kgxat_unban <SteamID> Lifts a ban, also the engine ban; for anyone banned by mistake, the owner included
kgxat_unblock <name> Removes spawn menu block, blind, gag, mute and freeze from a player, and releases them from jail
kgxat_unjailid <SteamID> Releases a jailed player who is offline, so they are not jailed again when they come back (v3.6.11.1)
kgxat_scanall Sends every list again, rebuilds toolbox things from their saved data, and puts licenses and access rules on again; nothing saved changes
kgxat_rankpreset rp Makes the RP playtime ranks (28), their auto-rank hours and chat tags
kgxat_settime <hour> Sets the day/night clock, 0-24 (for example 21.5)
kgxat_setweather <kind> Sets the weather: clear, cloudy, fog, rain, storm or snow
Server console only
Command What it does
kgxat_scan Prints the compatibility scan of the server
kgxat_acscan Prints the anti-cheat scan
kgxat_unincognito [name or SteamID] Gives incognito admins their rank back; no name = every incognito admin
Debugging

These run on your own computer and print to the console or open a window.

Command What it does
kgxat_debug_console Opens the debug console window (tabs Calls, Net, Tool settings, Report)
kgxat_debug_report Prints the debug report
kgxat_perf_client [seconds] (old name kgxat_hookprofile) Times every toolbox hook on your game for 2-60 seconds (default 10), then prints the costliest
kgxat_owner add <SteamID or part of a name> / remove <SteamID> / list / clear Server console (or rcon) only: sets the server owners, a level above superadmin (v3.6.12; Settings > Permission Report)
kgxat_spawn_whitelist 0/1 Server: 1 = players spawn only what is on the spawn whitelist (Settings > Spawn Whitelist)
kgxat_perf [seconds] Server console or superadmins: times every toolbox hook and net message on the server for 2-60 seconds (default 10), then prints the costliest
kgxat_wipedata map / allmaps / everything confirm [logs] Server console (or rcon) only: backs everything up, deletes the toolbox's saved data (this map's world data, every map's, or everything; owners, ranks, bans and warnings are kept, logs only with logs) and restarts the map so it loads blank (v3.6.13.1)
kgxat_moneylog <name / SteamID> [YYYY-MM-DD] Admins (Money Log access) or the server console: the last 60 money changes of that player (or everyone) that day, and the top gains
kgxat_fast_draw 0/1 1 (default) = spray paint and rain drawn in batches; 0 = one by one
kgxat_hud_debug Prints why the toolbox HUD draws or not
kgxat_preview_scan Prints what the hover preview can show (spawn menu lists and icons)

How to use it

Bind third person to a key from the console
  1. Open the console.
  2. Type bind h kgxat_thirdperson and press Enter.
  3. Press H in game to switch third person on and off.
Unban yourself after a mistake
  1. Open the server console (or rcon).
  2. Type kgxat_unban STEAM_0:1:12345678 with your own SteamID.
  3. The toolbox ban and the engine ban for that SteamID are both cleared.
Start this map from blank
  1. Open the server console (or rcon).
  2. Type kgxat_wipedata map confirm.
  3. A backup is saved, this map's warps, zones, stores, permanent props, doors and the rest are deleted, and the map restarts in 10 seconds. Settings > Backup / Restore can bring it all back.
Lock every map door
  1. As an admin, open the console.
  2. Type kgxat_mapdoors lock.
  3. Doors of bought properties are left alone. Type kgxat_mapdoors default to undo it.

Tips and limits

  • kgxat_mapdoors, kgxat_unbreakable_doors and kgxat_physblock_map save for the current map only.
  • kgxat_mapdoors with no word prints the usage and the current mode.
  • kgxat_unblock from a player who is not a superadmin does nothing.
  • With kgxat_physblock_map 4 from the server console, list the ranks after the mode, separated by spaces.
  • kgxat_unblockme does not take an admin out of jail; only superadmins leave jail with it.
  • Server settings (kgxat_superadmin_only and the others) are convars, not commands: see the Getting Started guide and Settings > Server Settings.

Back to Basics

Type to search every tool, panel, setting, FAQ answer and release.