Easzy's Tuning – Hooks
This document lists the available Hooks provided by the Easzy's Tuning addon, allowing other developers to customize or extend its behavior.
General Garage Events
EZTuningStartTuning(ply, garageDoor)
Called when a player starts tuning their vehicle in the garage.
ply: Player who entered the garagegarageDoor: Entity of the garage door
EZTuningStopTuning(ply, garageDoor)
Called when a player stops tuning their vehicle.
ply: Player who exited the garagegarageDoor: Entity of the garage door
Upgrades & Purchases
EZTuningBuyUpgrade(ply, vehicle, categoryData, choiceData)
Called when a player purchases an upgrade.
ply: The player buying the upgradevehicle: The target vehiclecategoryData: Table describing the upgrade categorychoiceData: Table describing the specific upgrade choice
Effects & Visuals
EZTuningShouldBackfire(ply, vehicle, mv)
Called to determine whether the backfire effect should trigger.
- Return
falseto disable.
EZTuningShouldBurn(ply, vehicle, mv)
Called to determine whether the vehicle should emit tire burn effects.
- Return
falseto disable.
EZTuningShouldDrift(vehicle, mv)
Called to determine whether the vehicle is allowed to drift.
- Return
falseto disable.
EZTuningShouldRev(ply, vehicle, mv)
Called to determine if the revving effect should occur.
- Return
falseto disable.
EZTuningShouldTurbo(ply, vehicle, mv)
Called to control whether the turbo effect activates.
- Return
falseto disable.
EZTuningShouldBrake(ply, vehicle, mv)
Called to determine if the brake light or behavior should be triggered.
- Return
falseto disable.
Client-Side Hooks
These hooks are client-side only.
EZTuningShouldActivateNeon(ply, vehicle)
Called to check whether a neon effect should activate on a vehicle.
- Return
falseto prevent activation.
EZTuningShouldExhaustEffects(vehicle)
Called when the vehicle's exhaust effects are about to be rendered.
- Use to customize or cancel exhaust particles.