ℹ️mNotification
mNotification Documentation
------INSTALLATION------
STEP 1 - Drag And Drop
Drag codem-notification into your resources folder.
STEP 2 - SQL Configuration
Select the sql you're using options are oxmysql, ghmattimysql, mysql-async from config.
------Integrating Nofitications For ESX Framework------
STEP 1 - Edit Functions Lua
Go to es_extended/client/functions.lua
STEP 2 - Find Function
Find ESX.ShowNotification function
STEP 3 - Replace Code
Replace ESX.ShowNotification function with the code down below
------Integrating Nofitications For QB Framework------
STEP 1 - Edit Functions Lua
Go to qb-core/client/functions.lua
STEP 2 - Find Function
Find this function QBCore.Functions.Notify
STEP 3 - Replace Code
Replace QBCore.Functions.Notify function with the code down below
------INFORMATION------
Information - 1 How to use events or exports
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
Informaton - 2 How to display player name on notification types like twitter
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
Information - 3 Notification Types
server
announcement
info
twitter
phone
saved
error
sms
bank
success
lspd
ems
lscustom
ballas
families
vagos
lostmc
bennys
taxi
lsfd
ranger
statepolice
status
Preview Video
TEBEX
https://codem.tebex.io/package/5399171
Discord
Last updated