Slash commands need a server and an access level, so they do nothing in single player. Type them in chat with a slash, or in the server console without one. The syntax below is where the official wiki and a 42.19 command list agree.
| Command | What it does |
|---|
| /setaccesslevel "user" "level" | Sets a player's role |
| /additem "user" "Module.Item" count | Gives an item; the count is optional |
| /addvehicle "script" "user" | Spawns a vehicle at a player |
| /addxp "player" Perk=xp | Adds skill XP |
| /godmode "user" -true | Makes a player invulnerable; -false turns it off |
| /invisible and /noclip | Same pattern as godmode |
| /teleport "p1" "p2" | Moves one player to another |
| /teleportto x,y,z | Moves you to coordinates |
| /createhorde count "user" | Spawns zombies near a player |
| /chopper, /gunshot, /alarm | Trigger the helicopter, a gunshot or a building alarm |
| /startrain, /stoprain | Weather control |
| /servermsg "text" | Broadcast to everyone |
| /kickuser "user" -r "reason" | Kick a player |
| /banuser "user" -ip -r "reason" | Ban a player |
| /save, /quit, /players | Save the world, stop the server, list players |
| /changeoption name "value" | Change a server option |
| /showoptions, /reloadoptions | List or reload the options |
What changed in Build 42: multiplayer arrived with Unstable 42.13 in December 2025, and access levels became editable roles built from capabilities. Two Build 42 guides list the roles as admin, moderator, gm, observer, priority and user. /setaccesslevel still exists.
Where sources disagree: most write /godmode, one insists on /godmod, and one lists both, so try /godmode first. Use /kickuser, not /kick. One host says most servertest.ini changes still need a restart (one source). For setting up a server, see hosting a server and multiplayer.