JustScripts
  • Welcome to JustScripts Documentation
  • JustCarWash
    • Installation
    • Config Setup
  • JustHud
    • Configuration
    • Features
    • Chat
    • Placeholders
    • Elements
    • Custom Elements
    • Exports
  • JustHud(Old)
    • Installation
    • Config Setup
    • Events
  • JustTrucker
    • Installation
    • Config Setup
  • JustSecurity
    • Installation
  • JustDrugs
    • Installation
  • JustFarmer
    • Installation
  • JustCases
    • Configuration
    • Exports
    • Tebex integration
  • JustBank
    • Configuration
    • Exports
    • Society Accounts
  • JustDataSync
  • JustFishing
  • JustNotify
    • Exports
Powered by GitBook
On this page
  • JustHud:sendNotify
  • JustHud:sendHelpNotification
  • JustHud:visibilityEvent
  • JustHud:addMessage
  • JustHud:addSuggestion
  1. JustHud(Old)

Events

This is simple guide how to use our Hud Events

PreviousConfig SetupNextJustTrucker

Last updated 1 year ago

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")