Change notifications
Most of our scripts have the same structure with notifications. In the configuration file you will find the following function:
function notifications(notitype, message, time)
-- Change this trigger for your notification system keeping the variables
end
-- Notifications types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'
-- Notification time:
Noti.time = 5000Here are some sample notification scripts for you to adapt the script to your needs. If the notification script is not among these you will have to check the documentation of its developer and adapt it.
QB
function notifications(notitype, message, time)
QBCore.Functions.Notify(message, notitype, time)
end
-- Notifications types:
Noti.info = 'primary'
Noti.check = 'success'
Noti.error = 'error'
-- Notification time:
Noti.time = 5000
ESX
BIT-Notifications
CODEM-Notification
OKOKNotify
ORIGEN Notify
OX lib
Last updated