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

# JobAds hooks

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

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

## Client hooks

<AccordionGroup>
  <Accordion title="Hooks.ShowAnnouncement(title, message, type, jobId, imageUrl, borderColor)" icon="bullhorn">
    **Primary integration.** Default falls back to `ESX.ShowNotification`. Wire to your announcement NUI for the full branded display.

    ```lua theme={null}
    function Hooks.ShowAnnouncement(title, message, type, jobId, imageUrl, borderColor)
        exports['my-announcements']:render({
            title = title, body = message, image = imageUrl, color = borderColor,
        })
    end
    ```
  </Accordion>

  <Accordion title="Hooks.OnClientNotify(message, type)" icon="bell">
    Default `ESX.ShowNotification`, falls back to `lib.notify`.
  </Accordion>
</AccordionGroup>

## Server hooks

<AccordionGroup>
  <Accordion title="Hooks.OnServerNotify(source, message, type)" icon="bell">
    Default `xPlayer.showNotification(message)`.
  </Accordion>

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