-
Notifications
You must be signed in to change notification settings - Fork 0
Developer API & Events
This page is designed for developers who want to integrate Advanced Auto Repair Wash System ESX with other scripts, such as custom radial menus, VIP systems, or admin tools.
You can trigger these events from other scripts to interact with the repair or wash logic.
This event synchronizes the repair or wash status across all players on the server.
-
Usage:
TriggerServerEvent('esx_auto_repair:server:syncVehicle', vehicleNetId, type) -
Types: Use
'repair'for fixing the engine or'wash'for cleaning.
Use these exports to check the player's status or integrate with external UI/Menus.
-- Returns true if the player is currently performing an action (Repairing/Washing)
local isBusy = exports['esx_auto_repair']:isBusy()
if isBusy then
print("Action in progress - Menu access blocked!")
endThe script sends a structured JSON payload to your Discord Webhook for every transaction.
Data logged includes:
- Player Info: Name, License, and Job.
- Vehicle Info: License Plate and Engine Health.
- Service Details: Type (Repair/Wash) and Duration.
- Economy: Total Cost and Payment Method (Cash/Bank).
This script is built for high-performance servers:
-
Idle State:
0.00msresmon usage. -
Active State:
0.02ms - 0.04ms(only during active particle effects and 3D sound loops). - Network Traffic: Optimized to only sync necessary data to nearby players to minimize server lag.
Caution
Performance Warning
This script is highly optimized using state-aware loops. Do NOT add Wait(0) or unnecessary Tick handlers in the client-side code, as it will break the 0.00ms idle performance.
Tip
Integration Tip: To integrate with a Custom Radial Menu, simply trigger the esx_auto_repair:client:startAction event when the player's vehicle is inside a valid zone.
Version: 1.0.0
Status: Stable