🧩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 = Visible

If you need a Export that is not listed above, feel free to open a ticket at our Discord, so that we can implement your new Export in no time!

Last updated