Browse docs
Server: GetVehicleWear(plate)
Reference for Server: GetVehicleWear(plate) 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.
GetVehicleWear(plate)
- Purpose: Returns all saved diagnostic wear values for a vehicle.
- Arguments:
plate(string) - vehicle plate text. Required.
- Returns:
table | nil- the wear table, ornilfor invalid input or a database failure.
server.lua
local wear = exports["sky_mechanicjob"]:GetVehicleWear("ABC123")
if wear then
print(("Brake pads: %.1f%%"):format(wear.brake_pads))
end