# /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"

Source page: https://zomboiddb.com/commands/addvehicle/

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](https://zomboiddb.com/vehicles/vanambulance/)
- `/addvehicle Base.PickUpTruck 10754,9926,0` a pickup in Muldraugh [PickUpTruck](https://zomboiddb.com/vehicles/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](https://zomboiddb.com/commands/?cmd=addvehicle#builder)

## 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](https://zomboiddb.com/access-levels/).
