Browse docs
Server: RepairVehicle(netId, reason?)
Reference for Server: RepairVehicle(netId, reason?) 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.
RepairVehicle(netId, reason?)
- Purpose: Fully repairs a networked vehicle, realistic wheel damage, and all diagnostic wear.
- Arguments:
netId(number) - FiveM network ID of the vehicle. Required.reason(string?) - optional integration reason included in history and event payloads.
- Returns:
boolean-truewhen the repair was accepted.table | string- repair result on success or an error code on failure.
Saved vehicle properties, Stance, custom engine sound, Nitro, and other tuning are preserved.
server.lua
local success, result = exports["sky_mechanicjob"]:RepairVehicle(vehicle_net_id, "garage_service")
if not success then
print(("Vehicle repair failed: %s"):format(result))
end