> ## 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.

# Carclear hooks

> Every hook exposed by apex-carclear/hooks.lua.

Source: `apex-carclear/hooks.lua` (unencrypted).

<AccordionGroup>
  <Accordion title="Hooks.ImpoundOwnedVehicles(ownedPlateSet, vehicleEntries)" icon="warehouse">
    Receives `{ [trimmedPlate] = true, ... }` and an array of `{ entity, plate, coords }`. Return `true` on success. Default no-op (unowned vehicles still get deleted).

    ```lua theme={null}
    function Hooks.ImpoundOwnedVehicles(ownedPlateSet, vehicleEntries)
        return exports['ata-garage']:ImpoundVehicles(ownedPlateSet, vehicleEntries)
    end
    ```
  </Accordion>

  <Accordion title="Hooks.BeforeEntityDelete(entity)" icon="trash">
    Called once per vehicle entity just before `DeleteEntity`. Cleanup hook for AdvancedParking / vehiclekey / metadata systems.
  </Accordion>

  <Accordion title="Hooks.NotifyAll(message)" icon="bullhorn">
    Default `TriggerClientEvent('esx:showNotification', -1, message, 'serverannounce')`.
  </Accordion>

  <Accordion title="Hooks.OnAuditLog(source, action, details)" icon="file-lines">
    Default `lib.logger(source, 'apex-carclear', details, action)`.
  </Accordion>
</AccordionGroup>
