Work Van
Every work order uses one van for the whole crew. It is brought out in the van bay next to the depot, every crew member gets the keys, and the route only pays out once the van is back in the bay.
Config.Job = {
returnRadius = 15.0,
van = {
model = 'burrito3',
coords = vector4(743.58, 131.81, 80.07, 241.38),
spawnOnStart = true,
spawnSide = 'server',
},
}These keys sit in Config.Job together with the other job settings.
| Key | Default | Meaning |
|---|---|---|
van.model | burrito3 | The vehicle model. |
van.coords | See above | The van bay. A vector4: position and heading. The van appears here and has to be parked here again. |
van.spawnOnStart | true | true brings the van out as soon as the leader starts a route. false makes the leader collect it at the dispatcher first. |
van.spawnSide | server | server: the server creates the van. client: the leader’s game creates it, and the server checks that it is the right model, belongs to the leader and stands within 25 metres of the bay. |
returnRadius | 15.0 | Metres from the bay the van may stand when it is returned. |
Getting the van
With spawnOnStart = true the van appears in the bay the moment the leader starts the route. If it cannot be brought out, the leader sees why (see the table below) and the route waits at the Collect service van step.
With spawnOnStart = false the route starts at the Collect service van step. A blip and a waypoint lead to the van bay. The leader picks Collect work van at the dispatcher, or Collect service van in the work order menu.
| Situation | Message |
|---|---|
| You are not the crew leader | Only the crew leader can do that. |
You are more than Config.Job.depotDistance metres from the dispatcher | Return to the depot to collect the work van. |
| A vehicle stands within 4 metres of the bay | The van bay is occupied. Clear it and try again. |
| The van could not be created | The van could not be dispatched. Try again. |
| The crew already has a van or no work order | Your crew already has a van or has no active work order. |
Once the van is out, the crew moves on to the boxes and the waypoint jumps to the middle of the route’s boxes. See Mission HUD & Waypoints.
Keys and fuel
As soon as the van has loaded in for a crew member, their game gives them the keys and fills the tank. Every member gets keys, not only the leader.
The keys go through the first of these resources that is started, checked in this order:
| Resource | How the keys are given |
|---|---|
qbx_vehiclekeys | By the server, with its GiveKeys export. |
Renewed-Vehiclekeys | The addKey export, with the plate. |
wasabi_carlock | The GiveKey export, with the plate. |
qs-vehiclekeys | The GiveKeys export, with the plate. |
tgiann-hotwire | The tgiann-hotwire:addKey event, with the plate. |
cd_garage | The cd_garage:AddKeys event, with the plate. |
qb-vehiclekeys | The vehiclekeys:client:SetOwner event, with the plate. |
For another key script, add it to frameworks/vehiclekeys/client.lua. The file is not encrypted.
The tank is filled with GTA’s own fuel level (SetVehicleFuelLevel to 100). The script has no bridge for fuel resources.
On the road
- Keep the van close. You can only open a box, or help at one, while your crew’s van is within 150 metres of you: Park your crew van near the work site.
- Losing the van. The server checks every few seconds whether the van still exists. If it is gone, for example because an admin or a cleanup script deleted it, the work order is cancelled without pay and the boxes are free again. The leader is told Your work van was lost. Select a new order at the depot. The crew stays together and can pick a new route.
- The van is also removed when the leader cancels the work order, when the last crew member leaves and when the resource stops.
Returning the van
When the last box is repaired, the mission panel shows Return van & collect pay and a waypoint leads to the van bay.
- Park the van within
returnRadiusmetres of the bay. - Everyone gets out.
- The leader walks to the dispatcher, staying within
returnRadiusmetres of the van, and picks Return van and get paid. Return van & collect pay in the work order menu does the same.
| Situation | Message |
|---|---|
The leader is not at the dispatcher, or more than returnRadius metres from the van | Bring your crew van back to the depot. |
The van stands more than returnRadius metres from the bay | Park the van in the depot return area. |
| A player sits in the van | Everyone must exit the van before returning it. |
| The payments could not be recorded | Payment storage is unavailable. Keep your van and try returning it again. |
When the return goes through, the van is removed and every crew member is paid. See Payouts.

