Custom Notify

Navigate to bridge/client folder and select your framework lua file

Locate function notify and add your client side notify into it

Example for using ox_lib notify

function notify(data)
    if data.type == 'primary' then data.type = 'inform' end 
    
    lib.notify({
        description = data.message,
        duration = data.duration,
        position = 'top-right',
        type = data.type,
        --add style/icon here if you wish to change it
    })
end

Last updated