# Exports

## Export namespace

All exports use:

```lua
exports['envi-sabotage-v2']
```

{% hint style="info" %}
Net events use the `envi-sabotage:` prefix instead.
{% endhint %}

## Holding checks

These return booleans.

```lua
exports['envi-sabotage-v2']:isHoldingSaw()
exports['envi-sabotage-v2']:isHoldingDrill()
exports['envi-sabotage-v2']:isHoldingImpactDriver()
exports['envi-sabotage-v2']:isHoldingPliers()
exports['envi-sabotage-v2']:isHoldingSpanner()
exports['envi-sabotage-v2']:isHoldingAdjustableSpanner()
exports['envi-sabotage-v2']:isHoldingScrewdriver()
```

## Animations

Use these to play the packaged tool animations.

```lua
exports['envi-sabotage-v2']:sawAnimation()
exports['envi-sabotage-v2']:impactDriverAnimation()
```

If you override these in config, make sure your replacement returns when the animation is finished.

## Repairs

Use these exports to clear sabotage state.

```lua
exports['envi-sabotage-v2']:RepairAll(vehicleEntityId)
exports['envi-sabotage-v2']:FixWheelNuts()
exports['envi-sabotage-v2']:FixAcceleration()
exports['envi-sabotage-v2']:FixElectrics()
exports['envi-sabotage-v2']:FixBrakes()
exports['envi-sabotage-v2']:FixGasTank()
```

`RepairAll(vehicleEntityId)` is the correct full reset path.

Use it instead of `SetVehicleFixed(vehicle)` if you want your mechanic script to clear sabotage effects too.
