Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.apex-services.site/llms.txt

Use this file to discover all available pages before exploring further.

Source: apex-mechanic-impound/hooks.lua (unencrypted).

Server hooks

Primary integration. Forward the vehicle to your garage / impound. Return true on success. Default no-op (the entity is then deleted).
function Hooks.ImpoundVehicle(source, plate, vehicleCoords, damageData)
    return exports['ata-garage']:ImpoundVehicleByPlate(plate, vehicleCoords)
end
Called just before DeleteEntity. Hook AdvancedParking / qbx_parking cleanup.
Default xPlayer.getJob().name == Config.JobName. Override for Zweitjob / duty checks.

Client hooks

Default checks ESX.GetPlayerData().job.name == Config.JobName.
Default lib.showTextUI.
Default lib.hideTextUI.
Default ESX.ShowNotification, falls back to lib.notify.