mNotification
mNotification Documentation
Last updated
mNotification Documentation
Last updated
Drag codem-notification into your resources folder.
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
Go to qb-core/client/functions.lua
Find this function QBCore.Functions.Notify
Replace QBCore.Functions.Notify function with the code down below
IMPORTANT NOTE : This requires lua knowledge and a bit html, css knowledge (only if you want to color some texts )
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 text you want to display
2nd parameter is the notification type (more types can be find in notification types category)
3rd parameter is the custom header if you want to use display default header set it to nil
4th parameter 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
IMPORTANT NOTE : This requires lua knowledge and a bit html, css knowledge
I'll take qb-phone for this example and for the other systems basically you need to find the event sends Twitter post
server
announcement
info
phone
saved
error
sms
bank
success
lspd
ems
lscustom
ballas
families
vagos
lostmc
bennys
taxi
lsfd
ranger
statepolice
status
https://codem.tebex.io/package/5399171