forked from Simnation/Main
ed
This commit is contained in:
parent
4ba41119ec
commit
de47864181
2 changed files with 15 additions and 14 deletions
|
@ -6,20 +6,21 @@ function notification(title, text, time, type)
|
|||
if Config.BrutalNotify then
|
||||
exports['brutal_notify']:SendAlert(title, text, time, type)
|
||||
else
|
||||
-- Put here your own notify and set the Config.BrutalNotify to false
|
||||
SetNotificationTextEntry("STRING")
|
||||
AddTextComponentString(text)
|
||||
DrawNotification(0,1)
|
||||
|
||||
-- Default ESX Notify:
|
||||
--TriggerEvent('esx:showNotification', text)
|
||||
|
||||
Default QB Notify:
|
||||
TriggerEvent('QBCore:Notify', text, 'info', 5000)
|
||||
|
||||
-- OKOK Notify:
|
||||
-- Using ox_lib for notifications
|
||||
lib.notify({
|
||||
title = title,
|
||||
description = text,
|
||||
type = type,
|
||||
duration = time
|
||||
})
|
||||
|
||||
-- Previous notification methods (commented out for reference)
|
||||
-- SetNotificationTextEntry("STRING")
|
||||
-- AddTextComponentString(text)
|
||||
-- DrawNotification(0,1)
|
||||
-- TriggerEvent('esx:showNotification', text)
|
||||
-- TriggerEvent('QBCore:Notify', text, 'info', 5000)
|
||||
-- exports['okokNotify']:Alert(title, text, time, type, false)
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue