Custom Notifications
Customizing the notification system used in Wasabi Scripts.
Customize Notifications
Navigate to the cl_customize.lua
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
Customize Text UI
Navigate to cl_customize.lua
cl_customize.lua
More specifically,
wasabi_bridge/customize/cl_customize.lua
Locate the showTextUI
and hideTextUI
functions
showTextUI
and hideTextUI
functions -- 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