Custom Notifications
Customizing the notification system used in Wasabi Scripts that are using the Wasabi Bridge (wasabi_bridge) resource.
Customize Notifications​
Navigate to the cl_customize.lua​
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​
Navigate to cl_customize.lua​
More specifically,
wasabi_bridge/customize/cl_customize.lua
Locate the showTextUI and hideTextUI functions​
-- Show text UI
function WSB.showTextUI(msg)
lib.showTextUI(msg)
end
-- Hide text UI
function WSB.hideTextUI()
lib.hideTextUI()
end