Basic Configuration

This section covers how to configure the basic settings of the HUD script. This includes setting up components, choosing what information to display, and adding your server logo.

To set up your server logo, place your logo image inside the web/images/ folder. The logo file must be named logo.png for it to work correctly. Ensure that the logo dimensions are in a square format, such as 512x512, 1024x1024, and so on. The size does not matter as long as it is a square.

Notification sounds

You can customize the sound for each notification. These sounds are stored in the web/sounds/ directory. Please do not rename the sound files; each file must follow the notification_type.mp3 format (e.g., error.mp3, info.mp3, success.mp3). Changing the names will cause the HUD to malfunction.

Management by players

manageHUD - if set to true players can open settings menu to choose by themselves what HUD components they want to see. If you want to disable this feauture - set it to false .

HUDCommand - command that opens HUD settings menu. If manageHUD is set to false this command will work as toggling HUD on and off. If you want to disable the command just leave it as empty string, like so '' .

Config.manageHUD = true
Config.HUDCommand = 'hud'

Components

Choose which components you want to be displayed to the player.

The basic variables

label and desc - are for settings menu.

enabled - is component globally enabled.

default - should component be visible to player by default when they enter the server for the first time.

Other variable explanation will be in a code comment form -- variable explanation

Keep in mind if you disable components that you don't need, you don't have to configure them, just leave them as it is. BUT DO NOT DELETE THEM.

Status

An array of predefined statuses your players will see. Object fields that are required will have an asterisk (*) in front of them.

{

*name : string - the key of a status you're going to use to update status value. It has to be unique.

*icon : string - status icon, use FontAwesome to find icon you want to use.

*color : string - status color.

emptyColor : string - status empty color. Default rgba(255, 255, 255, 0.1) .

iconColor : string - status empty color. Default #FFF.

blinkFrom : number - when should the player be notified by blinking the status indicating they're low on something? If it's not needed, omit the variable from the object.

}

Info

An array of predefined info hud options. All the object fields are required.

{

name : string - the key value of info you're going to use to update info values. The key has to be unique.

icon : string - info icon, use FontAwesome to find icon you want to use.

default : string - default value. If your information is static (you will not update it) you can use it to define the value you want to show. If you will change the value it doesn't really matter if you set it, it could be left as empty string (''). BUT DO NOT DELETE IT.

}

Keybinds

An object where the keys represent keyboard keys and their corresponding values indicate their functionality.

Default Config

Here's default config that comes with the script when you buy it. Just in case you did something wrong and you need to start over.

Last updated