--------------------------------------------------------------- ----------------For support, scripts, and more---------------- --------------- https://discord.gg/wasabiscripts ------------- --------------------------------------------------------------- local wasabi_uikit, uikitFound = GetResourceState('wasabi_uikit'), false if wasabi_uikit == 'started' or wasabi_uikit == 'starting' then uikitFound = true end function WSB.showNotification(title, desc, style, icon, id) if style == 'info' or style == 'primary' then style = 'inform' end if style == 'danger' then style = 'error' end if GetResourceState('ox_lib') == 'started' then exports.ox_lib:notify({ title = title, description = desc or false, id = id or false, position = 'top-right', icon = icon or false, duration = 3500, type = style or 'inform' }) return end return ShowNotification(title, desc, style, icon, id) end RegisterNetEvent('wasabi_bridge:notify', function(title, desc, style, icon, id) return WSB.showNotification(title, desc, style, icon, id) end) exports('showNotification', WSB.showNotification)