Custom Notifications

Customizing the notification system used in Wasabi Scripts.

Customize Notifications


More specifically, wasabi_bridge/customize/cl_customize.lua.

Locate the notify event


RegisterNetEvent('wasabi_bridge:notify', function(title, desc, style, icon)
    --Customize with your own notification system.
    --To use framework specific one you can use this function:
    -- WSB.showNotification(msg, style)
    lib.notify({
        title = title,
        description = desc,
        icon = icon or false,
        duration = 3500,
        type = style
    })
end)

Modify to your liking


An example may look something like this
RegisterNetEvent('wasabi_bridge:notify', function(title, desc, style, icon)
    WSB.showNotification(desc, style)
end)

Customize Text UI


More specifically, wasabi_bridge/customize/cl_customize.lua

Locate the showTextUI and hideTextUI functions

They will appear like this:
    -- Show text UI
    function WSB.showTextUI(msg)
        lib.showTextUI(msg)
    end
 
    -- Hide text UI
    function WSB.hideTextUI()
        lib.hideTextUI()
    end

Customize each function

Last updated