How to spawn a car in Project Zomboid
Type addvehicle "Base.VanAmbulance" "username" in the Console tab, or /addvehicle "Base.VanAmbulance" in game chat to spawn it near you.
addvehicle
Spawns a vehicle next to a player or at x,y,z coordinates.
/addvehicle "<script>" "<username or x,y,z>" Examples
/addvehicle "Base.VanAmbulance" "rj" Spawns an ambulance next to rj.
/addvehicle "Base.VanAmbulance" "10000,11000,0" Spawns it at those coordinates.
Arguments
scriptRequired- The vehicle script, such as
Base.VanAmbulance. username or x,y,zOptional- A player to spawn it near, or world coordinates. Leave it out to spawn it near you.
What it does
Spawns any vehicle by its script name, such as Base.VanAmbulance.
Good to know
- Type it in the **Console** tab without the slash, or in game chat with the slash from an admin account.
Run it on your server
Admin commands go in the Console tab of the server page without the slash (players), or in game chat with it (/players) from an admin account. Settings live in Zomboid/Server/main.ini and main_SandboxVars.lua on the Files tab and apply at the next start. New to this? Start a Project Zomboid server first.
Your own
Project Zomboid server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.