Exports

Export namespace

All exports use:

exports['envi-sabotage-v2']
circle-info

Net events use the envi-sabotage: prefix instead.

Holding checks

These return booleans.

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.

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.

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.

Last updated