Installation & Usage Guide
Installation
Notification Usage:
Client side:
exports['X19-Notify']:SendNotify(Title, Type, Time, Caption)Server side:
TriggerClientEvent('x19-Notify:SendNotify', source, Title, Type, Time, Caption)Add Custom Types
You can add more Types easily in Config.VariantDefinitions
Config.VariantDefinitions = {
success = {
icon = 'fas fa-check',
color = "#47cf73", -- Green
},
primary = {
icon = 'fas fa-info',
color = "#1c75d2", -- Blue
sound = "sound.mp3", -- Optional sound file
volume = 0.3, -- Optional volume for the sound
},
error = {
icon = 'fas fa-xmark',
color = "#dc3545", -- Red
},
warnning = {
icon = "fas fa-exclamation",
color = "#FFB300", -- Yellow
},
police = {
icon = 'local_police',
color = "#0D54C8", -- Blue
},
ambulance = {
icon = 'fas fa-ambulance',
color = "#f44236", -- Red
}
}Example of Usage
Last updated