Server Side
List of server side exports/events
Missing an export? Contact us on our Discord Server.
GetVehicleMileage
local data = exports['op-mechanic']:GetVehicleMileage(plate)
-- { plate, mileageKm, odometer, odometerUnit } | nillocal data = exports['op-mechanic']:GetVehicleMileageByNetId(netId)EnsureVehicleMileage
local data = exports['op-mechanic']:EnsureVehicleMileage(netId, modelName)netId:numbermodelName:string?returns: mileage table or
nil
SendDispatchAlert
Quick dispatch for other resources. job is required and must match a shop job key.
exports['op-mechanic']:SendDispatchAlert(
'Flat tire',
'Citizen reports a blown tire near Legion Square.',
'orange', -- orange | red | green
{ x = 215.12, y = -810.45, z = 30.73 },
'build', -- optional icon
'mechanic'
)Returns the created call table, or nil.
CreateDispatch
Full payload. Pass job or src so the call routes to that shop only.
Mechanic shops
Duty helpers
OnPlateChange
Call this after an external plate changer so history / mileage / persistence stay linked.
HasAdminPermission
Last updated