Skip to main content
Source: apex-jobads/hooks.lua (unencrypted).

Client hooks

Primary integration. Default falls back to ESX.ShowNotification. Wire to your announcement NUI for the full branded display.
function Hooks.ShowAnnouncement(title, message, type, jobId, imageUrl, borderColor)
    exports['my-announcements']:render({
        title = title, body = message, image = imageUrl, color = borderColor,
    })
end
Default ESX.ShowNotification, falls back to lib.notify.

Server hooks

Default xPlayer.showNotification(message).
Default lib.logger.