JustHud:sendNotify
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
)
JustHud:sendHelpNotification
Usage of this event is very simple
TriggerEvent("JustHud:sendHelpNotification",
"E", -- keybind
"PRESS E FOR THE DOCUMENTATION", -- text
5000 -- time in ms
)
JustHud:visibilityEvent
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)
JustHud:addMessage
Add Message from player
TriggerServerEvent("JustHud:addMessage", 'Hi there, i am Stane')
JustHud:addSuggestion
Add Suggestion for command
TriggerEvent("JustHud:addSuggestion", "/documentation [docs] This command send announce to docs")