RacingAdvanced Configuration
client/edit.lua
Owner-editable client hooks — notifications, plates, race lifecycle.
Do not rename these globals. Core client code calls them by name.
Keep the framework guard at the top of the file.
| Function | Purpose |
|---|---|
Alert(msg, nType, timeout) | Client notifications (QB / Qbox / ESX / ox_lib) |
GetVehiclePlate(vehicle) | Normalized plate for scan / join |
OnRaceStart(race) | Optional: radio, keys, fuel when a race starts |
OnRaceEnd(race) | Optional: cleanup when a race ends |
OnPoliceDispatchAlert(alert) | Optional client-only dispatch (bundled packs are server-side) |
Example — race start hook
function OnRaceStart(race)
-- e.g. set radio channel, disable seat shuffle, etc.
end
function OnRaceEnd(race)
-- restore whatever OnRaceStart changed
end