Integrations

Webhook Event Reference

Reference the in-game events included in job webhook payloads.

#Event Payload

Payloads for events triggered in-game.

json
{
  "location": {
    "x": -104003.5436,
    "y": 11.0771,
    "z": 17014.155
  },
  "real_time": "2023-03-01T00:36:12Z",
  "time": 1677630973,
  "type": "job.started",
  "meta": {
    ...
  }
}

#Event types

#Job Started

Type: job.started This event is triggered when the job is started.

Meta Properties

PropertyTypeDescription
autoLoadedbooleanIf the job was automatically loaded.

#Job Delivered

Type: job.delivered This event is triggered when the job is delivered.

Meta Properties

PropertyTypeDescription
revenueintRevenue given from job
earnedXPintXP from the Job
cargoDamagefloatCargo Damage
distanceintDistance travelled
timeTakenintTime taken to complete job
autoParkbooleanIf auto parked

#Job Cancelled

Type: job.cancelled This event is triggered when the job is cancelled.

Meta Properties

PropertyTypeDescription
penaltyintPenalty cost from cancelling job

#Fine

Type: fine This event is triggered when the fine is issued.

Meta Properties

PropertyTypeDescription
offencestringThe offence committed
amountintThe fee amount in Euros or Dollars

If the fine offence was a speeding_camera:

PropertyTypeDescription
speed_limitintspeed limit in km/h
amountintspeed in km/h

#Tollgate

Type: tollgate This event is triggered when a tollgate is used.

Meta Properties

PropertyTypeDescription
costintCost to go through tollgate in Euros or Dollars

#Ferry

Type: ferry This event is triggered when a ferry is used.

Meta Properties

PropertyTypeDescription
costintCost to go through tollgate in Euros or Dollars
source_idstringstarting location ID
source_namestringStarting location name (in native language)
target_idstringEnding Location ID
target_namestringEnding Location Name (in native language)

#Train

Type: train This event is triggered when a train is used in game.

Meta Properties

PropertyTypeDescription
costintCost to go through tollgate in Euros or Dollars
source_idstringstarting location ID
source_namestringStarting location name (in native language)
target_idstringEnding Location ID
target_namestringEnding Location Name (in native language)

#Collision

Type: collision This event is triggered when a driver causes a collision

Meta Properties

PropertyTypeDescription
wear_engineintTruck Engine Damage (%)
wear_chassisstringTruck Chassis Damage (%)
wear_transmissionstringTruck Transmission Damage (%)
wear_cabinstringTruck Cabin damage (%)
wear_wheelsstringTruck wheel damage (%)

#Repair

Type: repair This event is triggered when truck is repaired.

Meta Properties No Metadata available

#Refuel

Type: refuel This event is triggered when the truck is refueled.

Meta Properties

PropertyTypeDescription
amountintThe fee amount in Euros or Dollars

#Teleport

Type: teleport This event is triggered when a teleport is detected.

Meta Properties

PropertyTypeDescription
from_xfloatThe original location in-game on the X-Axis.
from_yfloatThe original location in-game on the Y-Axis.
from_zfloatThe original location in-game on the Z-Axis.
to_xfloatThe new location in-game on the X-Axis.
to_yfloatThe new location in-game on the Y-Axis.
to_zfloatThe new location in-game on the Z-Axis.

#Speeding

Type: speeding This event is triggered when a driver is detected speeding.

Meta Properties

PropertyTypeDescription
speed_limitintIn game limit in km/h
speedfloatIn game limit in km/h
from_xfloatThe original location in-game on the X-Axis.
from_yfloatThe original location in-game on the Y-Axis.
from_zfloatThe original location in-game on the Z-Axis.
to_xfloatThe new location in-game on the X-Axis.
to_yfloatThe new location in-game on the Y-Axis.
to_zfloatThe new location in-game on the Z-Axis.