Project Zomboid / Admin commands / /addvehicle
/addvehicle
Spawns a vehicle next to a player or at coordinates. The game's help: Spawn a vehicle. Use: /addvehicle "script" "user or x,y,z", ex /addvehicle "Base.VanAmbulance" "rj"
From the game files: Project Zomboid Build 42.22. Commands, roles and sandbox options read from projectzomboid.jar and the game's Lua.
- Command
/addvehicle- Who can use it
- moderator and above
- Capability
ManipulateVehicle- Single player
- No, it needs a server
What you type
/addvehicle vehicle
/addvehicle vehicle x,y,z
/addvehicle vehicle "username"
Give 0 as the z coordinate: the game refuses any other for vehicles.
Examples
/addvehicle Base.VanAmbulance "rj"an ambulance next to rj VanAmbulance/addvehicle Base.PickUpTruck 10754,9926,0a pickup in Muldraugh PickUpTruck
rj is the name the game's own help uses. Put your player's name in its place.
Build this line with your own values
What the game answers
- Pass a username or coordinate
- Z coordinate must be 0 for now
- Vehicle spawned
- ERROR: I can not spawn the vehicle. Invalid position. Try to change position.
- Unknown vehicle script "..."
- User "..." not found
- Invalid location x,y,z
Which access levels can use it
| Capability | banned | user | priority | observer | gm | moderator | admin |
|---|---|---|---|---|---|---|---|
ManipulateVehicle | yes | yes |
These are the roles the game makes for a new server. An admin can change them in the admin panel. What each level may do.