Functions
Here you will find functions and example code on how to use our Notifications or Progress Bar.
Notify
exports["is_ui"]:Notify(title, message, duration, style, icon)TriggerClientEvent("is_ui:Notify", playerId, title, message, duration, style, icon)title:
stringornilmessage:
stringduration:
numberornilstyle:
stringortableicon:
stringornil
Example Usage
-- Example 1: Using Predefined Style
exports["is_ui"]:Notify("Test", "Lorem ipsum <span>adipiscing elit</span>.", 5000, "info")
-- Example 2: Using Predefined Style with Custom Icon
exports["is_ui"]:Notify("Test", "Lorem ipsum adipiscing elit.", 5000, "info", "fa-regular fa-thumbs-up")
-- Example 3: Using Custom Style
local style = {
icon = "fa-solid fa-sack-dollar",
primaryColor = "#FF425D",
backgroundIcon = { from = "#FC3955", to = "#861A20" },
sound = { play = true, type = "notifySound6", volume = 5 }
}
exports["is_ui"]:Notify("Test", "Lorem adipiscing elit.", 5000, style)-- Example 1: Using Predefined Style
TriggerClientEvent("is_ui:Notify", source, "Test", "Lorem ipsum <span>adipiscing elit</span>.", 5000, "info")
-- Example 2: Using Predefined Style with Custom Icon
TriggerClientEvent("is_ui:Notify", source, "Test", "Lorem ipsum adipiscing elit.", 5000, "info", "fa-regular fa-thumbs-up")
-- Example 3: Using Custom Style
local style = {
icon = "fa-solid fa-sack-dollar",
primaryColor = "#FF425D",
backgroundIcon = { from = "#FC3955", to = "#861A20" },
sound = { play = true, type = "notifySound6", volume = 5 }
}
TriggerClientEvent("is_ui:Notify", "Test", "Lorem adipiscing elit.", 5000, style)Default Notifications
To quickly change default Notifications, go to the given file and replace the functions to call our export.
QBCore
qb-core -> client -> functions.lua
ESX
es_extended -> client -> functions.lua
OX Library
ox_lib -> resource -> interface -> client -> notify.lua
Progress Bar
The Progress Bar can only be invoked on the Client-Side!
data:
tabletitle:
stringicon:
stringornildefault:
fa-solid fa-user
duration:
numberornildefault:
5000
useWhileDead:
booleanornildefault:
false
canCancel:
booleanornildefault:
false
prop:
indexed tableornilhash:
stringbone:
numberornildefault:
60309
position:
tablex:
numberdefault:
0.0
y:
numberdefault:
0.0
z:
numberdefault:
0.0
rotation:
tablex:
numberdefault:
0.0
y:
numberdefault:
0.0
z:
numberdefault:
0.0
animation:
tableornildict:
stringanim:
stringblendIn:
numberornildefault: 3.0
blendOut:
numberornildefault:
3.0
duration:
numberornildefault:
-1
flag:
numberornildefault:
49
playbackRate:
numberornildefault:
0
lockX:
booleanornildefault:
false
lockY:
booleanornildefault:
false
lockZ:
booleanornildefault:
false
scenario:
tableornilname:
stringenterAnim:
booleanornildefault:
true
disable:
tableornilmove:
booleanornildefault:
false
car:
booleanornildefault:
false
combat:
booleanornildefault:
false
mouse:
booleanornildefault:
false
sprint:
booleanornildefault:
false
Example Usage
Default Progress Bar
To quickly change default Progress Bar, go to the given file and replace the functions to call our export.
QBCore
qb-core -> client -> functions.lua
ESX
es_extended -> client -> functions.lua
OX Library
ox_lib -> resource -> interface -> client -> progress.lua
Last updated