ac_documents
Client

Client bridge

Data table

The notify function below receives a table with the following structure:

{
  title: string; // main text
  description?: string; // additional text
  duration: number; // duration in milliseconds
  type: 'error' | 'success'
}

Pre-made bridges

Default

ac_documents/editable/bridge/client.lua
function notify(data)
    BeginTextCommandThefeedPost('STRING')
    AddTextComponentSubstringPlayerName(data.title or data.description)
    ThefeedSetNextPostBackgroundColor(130)
    EndTextCommandThefeedPostTicker(false, true)
end

ox_lib

ac_documents/editable/bridge/client.lua
function notify(data)
    exports.ox_lib:notify(data)
end

qb-core

ac_documents/editable/bridge/client.lua
function notify(data)
    TriggerEvent('QBCore:Notify', data.title, data.type, data.duration)
end

okokNotify

ac_documents/editable/bridge/client.lua
function notify(data)
    exports.okokNotify:Alert(data.title, data.description or '', data.duration, data.type)
end