Events
This is simple guide how to use our Hud Events
Last updated
This is simple guide how to use our Hud Events
Last updated
Our notification system consists of three types of notifications (success, warning, error)
Success
TriggerEvent("JustHud:sendNotify",
"Title",
"This is example for Documentation",
"success",
5000 -- time in ms
)
Warning
TriggerEvent("JustHud:sendNotify",
"Title",
"This is example for Documentation",
"warning",
5000 -- time in ms
)
Error
TriggerEvent("JustHud:sendNotify",
"Title",
"This is example for Documentation",
"error",
5000 -- time in ms
)
Usage of this event is very simple
TriggerEvent("JustHud:sendHelpNotification",
"E", -- keybind
"PRESS E FOR THE DOCUMENTATION", -- text
5000 -- time in ms
)
If you want to hide hud use this event
TriggerEvent("JustHud:visibilityEvent", false)
If you want to show hud again use this event
TriggerEvent("JustHud:visibilityEvent", true)
Add Message from player
TriggerServerEvent("JustHud:addMessage", 'Hi there, i am Stane')
Add Suggestion for command
TriggerEvent("JustHud:addSuggestion", "/documentation [docs] This command send announce to docs")