Installation
Codeo-Notification Installation
Last updated
Codeo-Notification Installation
Last updated
Drag Codeo-Notification into your resources foder.
Select the sql you're using options are "oxmysql, ghmattimysql, mysql-async" from config.
Go to "es_extended/client/functions.lua"
Find "ESX.ShowNotification
" function.
Replace "ESX.ShowNotification
" function with the code down below.
Copy
Go to "qb-core/client/functions.lua"
Find "QBCore.Functions.Notify
" function.
Replace "QBCore.Functions.Notify
" function with the code down below.
Copy
If you want to trigger the notification from the client side you can use the example down below According to this example.
1st parameter is the title of the notification.
2nd parameter is the text you want to display in the notification.
3rd parameter is the notification type (more types can be find in notification types category).
4th is how long time notification will be displayed on the screen.
If you want to trigger the notification from server side use the example down below Only things change here are TriggerEvent needs to be replaced with TriggerClientEvent and source (id) of a player you want to show notification
success
server
info
error
announcement
lspd
ems
lscustoms
bennys