Installation
Codeo-Notification Installation
Installation
Step 1 - Drag And Drop
Drag Codeo-Notification into your resources foder.
Step 2 - SQL Configuration
Select the sql you're using options are "oxmysql, ghmattimysql, mysql-async" from config.
Integrating Notifications 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.
Copy
Integrating Nofitications For QB Framework
Step 1 - Edit Functions Lua
Go to "qb-core/client/functions.lua"
Step 2 - Find Function
Find "
QBCore.Functions.Notify" function.
Step 3 - Replace Code
Replace "
QBCore.Functions.Notify" function with the code down below.
Copy
Information
Information - 1 How to use events or exports
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
Notification types
success
server
info
error
police
ambulance
Last updated