Project Zomboid

Project Zomboid

60 ratings
Admin tools - build 41 MP
By Aiteron
   
Award
Favorite
Favorited
Unfavorite
Introduction
Extened customize start server script file
You can customize for yourself some params in start server script file of your PZ dedicated server (startserver64.bat or start-server64.sh). And I will explain how:

Set RAM for your server:
For set amout of RAM you need edit next params in script file (file located in folder of Project Zomboid dedicated server):
1. Remove -Xms**g param
2. Change -Xmx16g param, where 16 - is amount of RAM for your server.

How much need RAM? 2Gb for start + 500Mb per player (ex. 2 + 10*0.5 = 7Gb for 10 players)

IMPORTANT: For set RAM on Linux system need change this params in ProjectZomboid64.json too!

Steam param
-Dzomboid.steam=1
Disables/enables Steam integration on client/server.
(0=disabled, 1=enabled)




Also you can add params to script after zombie.network.GameServer.
Example:
... zombie.network.GameServer -statistic 0 -adminusername Aiteron -adminpassword 12345

-cachedir="C:\Zomboid"
Set cache dir for server (by default used default Zomboid folder)

-coop
??? Maybe for splitscreen param

-disablelog=Fireplace,Script,All
Disable log for DebugType. (Full list check in DebugType.class)

-debuglog=Fireplace,Script,All
Enable log for DebugType

-adminusername Aiteron
Set admin username

-adminpassword 12345
Set admin password

-ip 127.127.127.222
Set ip for server

-gui
Not worked now

-nosteam
Turn off steam integration

-statistic N
Set statistic period

-port 16300
Set port for server

-steamport1 8888
Set first steam port

-steamport2 9999
Set second steam port

-steamvac true
Enable/disable steam VAC (anticheat). Not worked now

-servername AiteronServer
Set server name. By this param you can choose other server settings files (by default servertest)
Admin commands
This commands you can run from ingame console, start server console or by RCON

/addalltowhitelist
Add all the current users who are connected with a password to the whitelist, so their account is protected.

/additem "username" "module.item" count
Give an item to a player. If no username is given then you will receive item. Count is optional.
ex : /additem "Aiteron" "Base.Axe" 5

/adduser "username" "pwd"
Use this command to add a new user to a whitelisted server
ex: /adduser "Aiteron" "12345"

/addusertowhitelist "username"
Add a user connected with a password to the whitelist, so their account is protected

/addvehicle "script" "user or x,y,z"
Spawn a vehicle
ex: /addvehicle "Base.VanAmbulance" "rj""

/addxp "playername" perkname=xp
Give experience points to a player.
ex: /addxp "rj" Woodwork=2

/alarm
Sound a building alarm at the Admin's position. (Must be in a room.)

/banid SteamID
Ban a SteamID

/banuser "username" -ip -r "reason"
Ban a user. Add a -ip to also ban the IP. Add a -r "reason" to specify a reason for the ban.
ex: /banuser "rj" -ip -r "spawn kill"

/changeoption optionName "newValue"
Change a server option

/chopper
Place a helicopter event on a random player

/clear
Clear console

/list
Displays information on all connections

/createhorde count "username"
Spawn a horde near a player.
ex: /createhorde 150 "rj"
(username is optional except from the server console)

/godmode "username" -value
Make a player invincible. If no username is set, then you will become invincible.
ex: /godmode "rj" -true (could be -false)

/grantadmin
Set admin for player

/gunshot
Place gunshot sounds on a random player

/help
List of command with descriptions

/invisible "username" -value
Make a player invisible to zombies. If no username is set then you will become invisible.
ex: /invisible "rj" -true (could be -false)

/kickuser "username" -r "reason"
Kick a user. Add a -r "reason" to specify a reason for the kick

/noclip "username" -value
Makes a player pass through walls and structures. Toggles with no value.
ex: /noclip "rj" -true (could be -false)

/players
List all connected players

/quit
Save and quit the server

/releasesafehouse
Release a safehouse you own

/reloadlua "filename"
Reload a Lua script

/reloadoptions
Reload server options (ServerOptions.ini) and send to the clients

/removeadmin
Set player not admin

/removeuserfromwhitelist "username"
Remove a user from the whitelist

/replay "playername" -record|-play|-stop filename
Record and play replay for moving player.
ex: /replay "Aiteron" -record stadion.bin

/save
Save the current world

/sendpulse
Toggle sending server performance info to this client. Use: /sendpulse

/servermsg "My message"
Broadcast a message to all connected players

/setaccesslevel "username" "accesslevel"
Set access level of a player. Current levels: admin, moderator, overseer, gm, observer.
ex: /setaccesslevel "rj" "moderator"

/showoptions
Show the list of current server options and values.

/startrain
Start rain on the server

/stoprain
Stop rain on the server

/tp "playername" or /tp "player1" "player2"
Teleport to a player. Once teleported, wait two seconds for map to appear.
ex: /tp "rj"
ex: /tp "rj" "toUser"

/tpto x,y,z
Teleport to coordinates. Use:
ex /teleportto 100098,189980,0

/thunder value
Control thunder
ex: /thunder start
ex: /thunder stop

/unbanid SteamID
Unban a SteamID

/unbanuser "username"
Unban a player

/voiceban "username" -value
Block voice from user "username".
ex: /voiceban "rj" -true (could be -false)
Connecting to server by RCON
Adding Discord bot to server
Using admin panel
5 Comments
Nuka-Cola Quantum 5 Feb, 2023 @ 6:17am 
When I use the /addvehicle command on modded vehicles it says "unknown vehicle script". I can't seem to find any solution to this, these mods are downloaded, redownloaded and set on the dedicated server and still nothing.
Baron Herzog von Graveland 29 Dec, 2022 @ 6:23pm 
Is it possible to stop displaying the "admin"-tag next to my name but still be admin?
Baron Herzog von Graveland 29 Dec, 2022 @ 6:21pm 
@ElPooparino try "USERS NAME".
NeonScreams 25 Dec, 2022 @ 2:34pm 
/setaccesslevel "User Has Four Names" admin
ElPooparino 23 Dec, 2021 @ 8:08pm 
How do I input spaces? Like for a name in the console commands? Underscores don't work and I am trying to figure this out pls help