Browse docs
Server: Fake plate server exports
Reference for Server: Fake plate server exports in mechanicjob.
This page documents supported public integration calls and usage examples. It does not expose or reproduce the resource's internal implementation.
Server Exports
All Advanced Pricing and Billing exports return a result table:
{
success = true,
data = {}
}
Rejected requests return success = false and a stable error code. Player identity, mechanic job, grade, permissions, vehicle distance, configured limits, quote state, invoice ownership, and monetary values are always resolved or validated on the server.
Fake plate server exports
These calls let server-side garage and Police integrations resolve, clear, persist, and restore fake-plate state:
| Export | Arguments | Returns | Purpose |
|---|---|---|---|
GetFakePlateState | netId | table | nil | Returns the current vehicle fake-plate statebag data |
ResolveRealPlateForPolice | netId, officerSource?, shouldAudit? | table | nil | Returns real/display identity and optionally writes the VIN-check audit |
ClearFakePlate | netId, reason? | boolean | Removes the fake plate and restores the real plate |
RestoreFakePlateState | netId, state, reason? | boolean, table | string | Validates and restores persisted fake-plate state |
ResolveRealPlateForGarageStore | netId | table | nil | Returns the real/display plate and configured garage-reset policy |
local resolved = exports["sky_mechanicjob"]:ResolveRealPlateForGarageStore(net_id)
if resolved then
print(("Store vehicle under real plate %s"):format(resolved.realPlate))
end
See Fake Plate Integration for the required consumer fxmanifest.lua, the native/helper alternatives, and the complete garage storage and restore lifecycle.