01
The terrortown gamemode
Trouble in Terrorist Town (TTT) is one of the gamemodes installed with the Garry's Mod dedicated server, next to sandbox: nothing to download. Its technical name is terrortown, not ttt. Each round, the game picks traitors at random among the players; the others are innocents, some of whom become detectives when there are enough people. Traitors must kill the innocents without getting caught, innocents must expose them before time runs out.
On a server installed by hand, the gamemode is chosen on the launch line:
./srcds_run -game garrysmod +gamemode terrortown +map ttt_nom_de_carte +maxplayers 16 +sv_setsteamaccount VOTRE_JETON_GSLT
The GSLT token, created with application ID 4000, makes the server visible in the Steam server list. The basics shared by every GMod server (token, ports, server.cfg) are in the guide create a Garry's Mod server, and the full Linux install in Garry's Mod server on a VPS.
02
TTT maps and map changes
Maps designed for TTT carry the ttt_ prefix: they place weapons, ammo and sometimes traps or traitor-only rooms. The gamemode ships none: you get them from the Garry's Mod Workshop. Pick them for your player count: a large map with eight players gives rounds where nobody meets.
Some TTT maps rely on Counter-Strike: Source content (textures, models). Their Workshop page usually says so: without that content, players see missing textures. Prefer self-contained maps if your players do not own that game.
The server changes map after ttt_round_limit rounds (6 by default) or ttt_time_limit_minutes minutes (75 by default), whichever comes first. It then moves to the next map in the cycle, a text file with one map per line, set by the mapcyclefile variable (mapcycle.txt by default):
ttt_carte_un
ttt_carte_deux
ttt_carte_trois
Garry's Mod no longer has built-in map voting: to let players choose, you need a voting addon, covered below.
03
The Workshop collection
Gather the server's maps and addons in a Workshop collection: the server downloads its content, and players receive it automatically when they connect. On a manual install, the collection is declared at launch with its numeric ID (the number at the end of its address):
+host_workshop_collection 1234567890
Maps are the heaviest content on a TTT server. Every map you add lengthens each new player's first connection: keep a short cycle of maps you actually play, and remove from the collection the ones the cycle no longer calls. Content that is not on the Workshop goes through a fast download server (FastDL): see web hosting for a GMod server.
04
The main ConVars: round time, roles, karma
TTT settings are ttt_ variables placed in garrysmod/cfg/server.cfg. The values below are the game defaults: only keep in your file the ones you change.
// Durée des manches
ttt_firstpreptime 60
ttt_preptime_seconds 30
ttt_posttime_seconds 30
ttt_haste 1
ttt_haste_starting_minutes 5
ttt_haste_minutes_per_death 0.5
ttt_roundtime_minutes 10
// Rôles
ttt_minimum_players 2
ttt_traitor_pct 0.25
ttt_traitor_max 32
ttt_detective_pct 0.13
ttt_detective_max 32
ttt_detective_min_players 8
ttt_credits_starting 2
ttt_det_credits_starting 1
// Karma
ttt_karma 1
ttt_karma_strict 1
ttt_karma_starting 1000
ttt_karma_max 1000
ttt_karma_persist 0
ttt_karma_low_autokick 1
ttt_karma_low_amount 450
ttt_karma_low_ban 1
ttt_karma_low_ban_minutes 60
// Changement de carte
ttt_round_limit 6
ttt_time_limit_minutes 75
- Round time: preparation lasts 30 seconds (60 for the first round on a map), then roles are drawn. With
ttt_haste mode on, the round starts with 5 minutes and gains 30 seconds per death; ttt_roundtime_minutes only applies when that mode is off.
- Traitors and detectives: the number of traitors is the
ttt_traitor_pct share of the player count, rounded down, with at least one traitor. With 0.25 and ten players, there are two traitors. Detectives only appear from ttt_detective_min_players players. Starting credits buy equipment from each role's shop.
- Karma: every player starts with 1000 points. Hurting or killing a teammate costs points, and low karma reduces the damage dealt (faster with
ttt_karma_strict). At or below ttt_karma_low_amount at the end of a round, the player is kicked, and banned for 60 minutes if ttt_karma_low_ban is 1. ttt_karma_persist 1 keeps karma across maps and after a disconnect.
To see the active value of a variable, type its name alone in the server console.
05
Administration and common addons
To administer, install ULX and its ULib library: ranks, kicks, bans, from an in-game menu. TTT also provides admin commands, typed in the server console or by a superadmin player:
ttt_roundrestart
ttt_print_adminreport
ttt_print_traitors
ttt_roundrestart restarts the round with a new preparation phase, ttt_print_adminreport shows who killed whom, ttt_print_traitors lists the traitors of the current round.
The most common addon families on TTT servers:
- a map vote at the end of the cycle, since the game no longer has one;
- damage logs the staff can read, to settle accusations of killing an innocent without replaying the game;
- weapons and items for the traitor and detective shops;
- TTT commands for ULX, which add gamemode-specific actions to the menu.
A Lua addon runs with the server's rights: install those from known sources, add them in small batches and read the console at each restart. A HUD or role addon written for TTT does not necessarily work under TTT2.
06
Moving to TTT2
TTT2 is a community rework of TTT, published on the Workshop (ID 1357204556). It adds an extensible role system, a new interface and many settings. It installs as an addon that replaces the terrortown gamemode: the server still starts with +gamemode terrortown, you just add TTT2 to the collection.
- Do not delete the original TTT files: the TTT2 documentation states that it still needs them, and that removing them harms the server.
- Compatibility: most weapons and items written for TTT work under TTT2. Addons that change the interface or the roles are the exceptions. On startup, TTT2 writes incompatible or outdated addons to the console.
- Settings: extra roles are other Workshop addons. Gamemode settings, the shop editor and the HUD choice are found in game, in the F1 menu; the old ULX module for TTT2 is marked deprecated by its authors.
Back up the server before switching: if an addon does not keep up, you are back on original TTT in a few minutes.
07
On a CloudFive server
On our Garry's Mod offers, everything is set from the server page, in the customer area:
- Gamemode and map: choose the TTT gamemode (
terrortown) and your starting map, without writing a launch line. The GSLT token is pasted on the same page;
- Workshop tab: paste your collection's address; its title, item count and size are shown before you apply it, then the server restarts;
- ULX installs in one click;
- Files:
server.cfg and the map cycle are edited in the online editor; addons that are not on the Workshop are uploaded by drag and drop;
- Live console:
ttt_ commands are typed there, with processor, memory and player count on screen;
- Backups dated over 5 days, restorable in one click if an addon or the move to TTT2 goes wrong;
- Shared access: open the server to your moderators, permission by permission.
The server runs in France on Ryzen 9 9950X, with DDR5 memory and NVMe storage, protected by Anti-DDoS Premium tuned for Garry's Mod. Pick the tier by slot count and collection weight: you can change it at any time without losing data. Offers are monthly with no commitment, with French-speaking support 7 days a week. To compare hosts, see the guide best GMod host; for a roleplay server rather than TTT, the guide DarkRP server.
08
Frequently asked questions
How do I create a TTT server on Garry's Mod?
Start the Garry's Mod dedicated server with the terrortown gamemode (shipped with the game) and a TTT map, ttt_ prefix, taken from the Workshop. Add a GSLT token to appear in the Steam list, a Workshop collection for maps and addons, then tune the game with ttt_ ConVars in server.cfg. At CloudFive, the gamemode, map, token and collection are set from the customer area.
How do I change the number of traitors in TTT?
With ttt_traitor_pct in server.cfg: it is the share of players who become traitors, 0.25 by default, rounded down with at least one traitor. ttt_traitor_max sets a cap. For detectives, use ttt_detective_pct and ttt_detective_min_players, the player count from which they appear.
How do I change TTT round length?
Haste mode is on by default: the round starts with ttt_haste_starting_minutes (5) and gains ttt_haste_minutes_per_death (0.5) per death. For a fixed length, set ttt_haste to 0 and adjust ttt_roundtime_minutes (10 by default). Preparation is set with ttt_preptime_seconds.
How does karma work on a TTT server?
Every player starts with 1000 points. Hurting or killing a teammate costs points, and low karma reduces the damage dealt. At or below 450 at the end of a round, the player is kicked and banned for 60 minutes by default. ttt_karma 0 turns the system off, ttt_karma_persist 1 keeps it across maps.
What is the difference between TTT and TTT2?
TTT is the original gamemode shipped with Garry's Mod. TTT2 is a community rework published on the Workshop: extra roles, a new interface, more settings. It replaces the terrortown gamemode without changing the launch line, and most TTT weapons work with it, except interface or role addons.
Why doesn't my TTT server change maps as expected?
The server changes map after ttt_round_limit rounds or ttt_time_limit_minutes minutes, and moves to the next map in the cycle file (mapcycle.txt by default). Check that the cycle's maps are in your Workshop collection. Since Garry's Mod no longer has built-in map voting, an addon is needed to let players vote.