Browse docs

Server: RepairWheelDamage(netId, reason?)

Reference for Server: RepairWheelDamage(netId, reason?) in mechanicjob.

All exports

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.

RepairWheelDamage(netId, reason?)

  • Purpose: Repairs only realistic wheel damage for a networked vehicle.
  • Arguments:
    • netId (number) - FiveM network ID of the vehicle. Required.
    • reason (string?) - optional integration reason returned in the result.
  • Returns:
    • boolean - true when the repair was accepted.
    • table | string - repair result on success or an error code on failure.
server.lua
local success, result = exports["sky_mechanicjob"]:RepairWheelDamage(
    vehicle_net_id,
    "roadside_assistance"
)

if not success then
    print(("Wheel repair failed: %s"):format(result))
end