Shifts
Every unit works one of four services: Police, EMS, Fire or Tow. Each service is linked to framework jobs in Config.Services, so a police officer can only start a Police shift.
Starting a shift
- Type
/ers(or press your tablet key) to open the ERS tablet. - Under Start your shift, pick your service. Services that are not your job show Not your job.
- Press Start shift.
While you are on shift:
- Callout offers arrive automatically every 90 to 240 seconds while you are free.
- Your unit status is pushed to the MDT (available, en route, on scene, traffic stop, busy).
- Your time on shift counts towards your stats.
Press End shift on the tablet to stop.
Duty sync
| Setting | Default | What it does |
|---|---|---|
dutyOnShiftStart | true | Starting a shift puts you on duty in your framework and MDT |
endShiftOnDutyOff | true | Going off duty ends your shift |
startShiftOnDuty | false | Going on duty starts a shift for your job's service automatically |
requireJob | true | Only the jobs listed for a service can start it |
Callout offers
- Automatic: offered while you are available. Turn them off on the tablet with the Callout offers switch.
- Requested: press Request callout on the tablet's Shift page.
- Sent by a dispatcher: a dispatcher can send a specific callout to you from their tablet. The offer shows Dispatch: name.
An offer waits 20 seconds. Accept with Y, decline with N.
With Kartik MDT, turning on Do Not Disturb pauses automatic offers (muteOffersOnDND). The tablet shows MDT Do Not Disturb is on.
Busy with another script
If you are already on an NPC call from kartik-ambulancejob or kartik-firefighterjob, ERS sends you no offers and you cannot start a shift until it is done. Those scripts pause their own NPC calls during an ERS shift in turn. The checks are in Hooks.BusyElsewhere in server/open/hooks.lua.
MDT status
Each step sets your unit status in the MDT. The status ids come from your MDT's Config.Statuses.
| Moment | Default status |
|---|---|
| Shift start | available |
| Callout accepted | enroute |
| Arrived on scene | onscene |
| Traffic stop | traffic |
| Pursuit | busy |
| Callout / stop / pursuit ends | available |
| Shift end | unavailable |
Set any of them to false in Config.Status to skip it.