Skip to main content
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).
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.