Files
red-valley/resources/[framework]/[depends]/wasabi_bridge/customize/client/notifications.lua

27 lines
1.0 KiB
Lua
Raw Normal View History

2026-03-29 21:41:17 +03:00
-----------------For support, scripts, and more----------------
--------------- https://discord.gg/wasabiscripts -------------
---------------------------------------------------------------
-- Checking for if Complete UI Kit is running
-- Get it here: https://wasabiscripts.com/product/7037645
local wasabi_uikit, uikitFound = GetResourceState('wasabi_uikit'), false
if wasabi_uikit == 'started' or wasabi_uikit == 'starting' then uikitFound = true end
-- Customize this to customize notifications accross all Wasabi Scripts
-- Notifications
function WSB.showNotification(title, desc, style, icon, id)
local QBCore = exports['qb-core']:GetCoreObject()
local message = desc and (title .. ' - ' .. desc) or title
local notifyType = style or 'primary'
QBCore.Functions.Notify(message, notifyType)
end
RegisterNetEvent('wasabi_bridge:notify', function(title, desc, style, icon, id)
return WSB.showNotification(title, desc, style, icon, id)
end)
exports('showNotification', WSB.showNotification) -- Export for use in other scripts