Vehicle Missions

Route-based vehicle missions — build taxi, ambulance, patrol, delivery, bus and racing routes entirely in-game, with no config editing required.

OpenModRoleplayPvPGeneral (Misc)Vehicles

SAR.VehicleMissions

Create taxi routes, deliveries, police patrols, ambulance calls, bus lines and other vehicle jobs directly in Unturned. You build each route in game with commands — no mission-file editing is required.

What players do

  1. Get into a mission vehicle.
  2. Follow the marked route.
  3. Complete every stop to receive the configured reward.

You decide who may start each mission, where it may start, which vehicle it uses, how long it lasts, what it pays and whether the vehicle may be damaged.


Main commands

Command What it does
/vmhelp Shows the in-game cheat sheet.
/vmlist Lists all missions.
/vminfo <mission> Shows one mission's current settings.
/vmset <mission> key=value Creates or changes a mission.
/vmdelete <mission> confirm Deletes a mission.
/vmcubeadd <mission> Adds a route point at your position.
/vmcubecfg <mission> <point\|all> key=value Changes route-point settings.
/vmspawnadd <mission> <vehicleId> Adds a vehicle spawn at your position.
/vmaccess <mission> add [radius] Adds a zone where the mission may start.
/vmpoints <mission> Shows the route for testing.
/vmstop Ends your active mission.

Mission settings

Use /vmset <mission> key=value.

Setting Example Meaning
time time=900 Time limit in seconds.
cost cost=500 Entry cost.
cooldown cooldown=300 Wait before the mission can be started again.
global global=true Shares that cooldown between all players.
maxplayers maxplayers=3 Maximum players on this mission at once; 0 is unlimited.
perm perm=police.patrol Permission required to start this mission.
fuel fuel=true Keeps the mission vehicle fuelled.
damage damage=false Prevents damage to the mission vehicle.
storage storage=true Lets players use the vehicle storage.
barricades barricades=true Lets players build on the vehicle.
dmgscale dmgscale=true Reduces rewards when the vehicle is damaged.
startonentry startonentry=false Requires another start method instead of entering the vehicle.

Use global=false when each player should have their own cooldown. Leave perm=default (the default) when everyone may start the mission.

Route points and rewards

Use /vmcubecfg <mission> <point|all> key=value.

Setting Example Meaning
radius radius=7 Distance in metres needed to complete the point.
wait wait=5 Seconds the player must remain at the point.
money money=50 Reward for the point.
siren siren=true Requires the vehicle siren to be on.
dmgscale dmgscale=true Applies damage scaling to this point's reward.
msgenter "msgenter=Stop {0}/{1}" Message on arrival.
msgcomplete "msgcomplete=Stop complete" Message after completion.

Add an item reward with:

/vmcuberewardadd taxi 1 1 i 15 3

This gives three items with ID 15 at the first taxi point. You can also run OpenMod or RocketMod commands as point rewards:

/vmcuberewardadd taxi 1 1 pay {id} 100
/vmcuberewardadd taxi 1 1 rocket give {id} 15 1

{id} is replaced with the player's Steam64 ID. The 1 runs the command as the server console; use 0 to run it as the player.

Global configuration

Most work happens in game. config.yaml is only for server-wide defaults. The usual settings are:

VehicleMissions:
  Enabled: true
  EndMissionWhenTryingToStartNewOne: false

  # Enable this only when you have many mission-vehicle spawns.
  EnableClusterActivation: false
  ClusterRadius: 75

  Economy:
    UseUconomy: false
    CurrencyName: "$"

Set UseUconomy: true when your server uses Uconomy. Otherwise, point rewards use Unturned experience.

Permissions

All editor commands use this OpenMod permission pattern:

SAR.VehicleMissions:commands.<command>

OpenMod roles

Add the following to your administrator role in roles.yaml:

permissions:
  - "SAR.VehicleMissions:commands.*"
  - "vehiclemissions.finishall"

Optional runtime commands for regular players:

permissions:
  - "SAR.VehicleMissions:commands.vmstate"
  - "SAR.VehicleMissions:commands.vmleft"
  - "SAR.VehicleMissions:commands.vmstop"

Rocket Permissions

If your server uses Rocket Permissions through the compatibility provider, you can grant the same nodes in the group Permissions.config.xml:

<Permission Cooldown="0">SAR.VehicleMissions:commands.*</Permission>
<Permission Cooldown="0">vehiclemissions.finishall</Permission>

Mission access set with /vmset <mission> perm=<node> uses that same permission system. Grant the chosen <node> to the player group that should be allowed to start the mission.

Ready-made examples

Police patrol

/vmcubeadd police
/vmcubeadd police
/vmspawnadd police 111
/vmset police time=1200 perm=police.patrol cooldown=600 maxplayers=3
/vmcubecfg police all money=120 siren=true dmgscale=true radius=8
/vmaccess police add 25

Only players with police.patrol may start it. They must begin at the start zone and keep the siren on at every point.

Delivery job

/vmcubeadd delivery
/vmcubeadd delivery
/vmspawnadd delivery 98
/vmset delivery time=1800 cost=500 cooldown=900 dmgscale=true
/vmcubecfg delivery all money=250 radius=8

The driver pays 500 to start and receives 250 per completed point. With damage scaling enabled, careful driving earns more.

Troubleshooting

The mission does not start. Use /vmcheck while in the vehicle, then run /vminfo <mission> to check its start settings and permission.

A point does not complete. Increase its radius, for example:

/vmcubecfg taxi all radius=8

Players can use mission vehicles without starting a mission. Set startonentry=false and start the mission through a quest flag or your own command flow.

Made by sarshane.

Reviews

No reviews yet — be the first!

Similar plugins