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

exports

Client-side exports for integrating with other resources.

FullyRepairVehicle

Fully repairs a specific vehicle — body, engine, fuel tank, all tires, wheel state, and active leaks.

local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
local success = exports['s4-wheeldamage']:FullyRepairVehicle(vehicle)
Parameter
Type
Description

vehicle

number

Vehicle entity handle

Returns: booleantrue if repair succeeded, false if vehicle is invalid.

What it does

  • Calls SetVehicleFixed, SetVehicleDeformationFixed

  • Sets engine, body, and petrol tank health to 1000

  • Fixes all tire indices (0–7)

  • Clears Cars state (damaged tires, wheel collider sizes)

  • Stops active leak tasks

  • Syncs state to server via syncCars

FullyRepairCurrentVehicle

Same as above, but automatically uses the player's current vehicle.

Returns: boolean

Usage examples

Mechanic job integration

Target-based repair

Server-triggered repair

Built-in compatibility

If Config.EnableCompatible = true, the script automatically listens for common mechanic repair events and calls FullyRepairVehicle. See Mechanic compatibility for the full event list.