🧩Exports and Events
You need specific Exports or Events for your Scripts? Here is your way to go! All S-HUDv1 Exports are still Supported!
Open a Interaction Notify with a specific key and message
exports["S-HUDv2"]:HelpNotify(Key, message)
exports["S-HUDv2"]:MakeHelpNotify(Key, message)Make a Team Notify for your Team chat
exports["S-HUDv2"]:DisplayAdminChatNotify(message, name, idofplayer, length)
exports["S-HUDv2"]:MakeTeamNotify(name, message, length)Make a Info Notify.
exports["S-HUDv2"]:DisplayNotify(type, titel, message, length, name, ID)
exports["S-HUDv2"]:MakeNotifyInfo(category, titel, message, length,name)category: "info"; "success"; "error"; "ooc"; "lifeinvader" Either number or word can be used. name/number are only used for OOC and Lifeinvader.
titel: Titel that should be displayed.
message: The message that should be delivered
length: The length of the message in seconds
name: The name that should be shown in a ooc notify,
id: The number in lifeinvader display or ID in a OOC notify
Make a server announce for a player
exports["S-HUDv2"]:DisplayAnnounce(typeofannounce, message, name, length, lockedzone)
exports["S-HUDv2"]:MakeAnnounce(message,category,name, length)typeofannounce: "server"; "event"; "police"; "medic"; "faction";
name: Name that should be displayed on the Announce
length: In Seconds
Make a progressbar in ms
exports["S-HUDv2"]:MakeProgressbar(text,length)Open a Text UI
exports["S-HUDv2"]:ShowHelpNotify(key, text)
exports["S-HUDv2"]:ShowTextUI(key, text)Close a Text UI
exports["S-HUDv2"]:RemoveHelpNotify()
exports["S-HUDv2"]:HideTextUI()Make the HUD visible
exports["S-HUDv2"]:OpenHUD()Make the HUD invisible
exports["S-HUDv2"]:CloseHUD()Enable/Disable the cinema mode for a player
exports["S-HUDv2"]:ControlCinemaMode()Shows every Notify that is available
exports["S-HUDv2"]:DisplayEverything()To integrate your own Food and Thirst System
exports["S-HUDv2"]:MakeFoodAndThirst(thirstpercent, hungerpercent)Change the postition of an HUD element from left to right, or right to left. "1" = left, "2" = left
exports["S-HUD"]:PosHandler(id, number)Sets the Range of the Voice. Used for own Voice system integration
exports["S-HUD"]:SetRange(mode)Remove an active Progressbar
exports["S-HUD"]:DestroyProgressBar()Force HUD Status Visible/Hidden
exports["S-HUD"]:ForceHudStatus(bool) // bool: true = Hidden / false = VisibleResets positioning data in the Databse for a player
exports["S-HUDv2"]:ResetDatabaseValues()Saves the positioning data. Data example is available in Javascript
exports["S-HUDv2"]:SaveValues(data)Admin Notify
TriggerEvent("SServcie:SHUDV2:DisplayAdminChatNotify", message, name, id, length)
TriggerClientEvent("SServcie:SHUDV2:DisplayAdminChatNotify", source, message, name, id, length)Notify
Make a Info Notify. Either number or word can be used
TriggerEvent("SService:SHUDV2:DisplayNotify", type, titel, message, length, name, number)
TriggerClientEvent("SService:SHUDV2:DisplayNotify", source, type, titel, message, length, name, number)source: Player ID
category: "info"; "success"; "error"; "ooc"; "lifeinvader" Either number or word can be used. name/number are only used for OOC and Lifeinvader.
titel: Titel that should be displayed.
message: The message that should be delivered
length: The length of the message in seconds
name: The name that should be shown in a ooc notify
Progressbar
TriggerEvent("SServcie:SHUDV2:Progressbar", length, text)
TriggerClientEvent("SServcie:SHUDV2:Progressbar", source, length, text)Announce
TriggerEvent("SService:SHUDV2:DisplayAnnounce", typeofannounce, message, name, length, lockedzone)
TriggerClientEvent("SService:SHUDV2:DisplayAnnounce", source, typeofannounce, message, name, length, lockedzone)source: Player ID
category:"server"; "event"; "police"; "medic"; "faction";
name: Name that should be displayed on the Announce
lenght: In Seconds
Last updated