For the complete documentation index, see llms.txt. This page is also available as Markdown.

Server Side

List of server side exports/events


GetVehicleMileage

local data = exports['op-mechanic']:GetVehicleMileage(plate)
-- { plate, mileageKm, odometer, odometerUnit } | nil
local data = exports['op-mechanic']:GetVehicleMileageByNetId(netId)

EnsureVehicleMileage

local data = exports['op-mechanic']:EnsureVehicleMileage(netId, modelName)
  • netId: number

  • modelName: 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