πŸ› οΈInstallation

Welcome to our installation guide! In this section, we'll walk you through the steps to effortlessly set up the Script S-HUD!

HUD System Installation

Follow this steps to install the script:

  1. Download the Script from Keymaster

  2. Drag the Script into your resources

  3. Add this to you your server.cfg: start S-HUD

  4. If the SQL file doesn't insert automatically, insert the SQL file in your database by hand.

CREATE TABLE IF NOT EXISTS `SHUDSettings` (
  `identifier` varchar(250)  COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `hud2` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `hud` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `notifys` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `speedometer` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `eatdrink` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
  `weaponinfo` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bankinfo` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `interaction` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `voicedesign` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
  `textdesign` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `iddesign` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `progressbar` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `iddesignleftright`int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bankinfoleftright`int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `voicedesignleftright`int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `weaponinfoleftright`int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `hudleftright` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `notifysleftright`int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `hud2coords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `hudcoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `notifyscoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `speedometercoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `eatdrinkcoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
  `weaponinfocoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bankinfocoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `interactioncoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `voicedesigncoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,   
  `adminotifycoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 
  `textdesigncoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `iddesigncoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `progressbarcoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `chatcoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `jobcoords` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`identifier`) USING BTREE,
  KEY `index` (`index`)
) ENGINE=InnoDB AUTO_INCREMENT=346 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
  1. For ESX 1.1 and 1.2 insert this in <es_extended> > <server> > <functions.lua> under ESX.GetPlayers

function ESX.GetExtendedPlayers(key, val)
	local xPlayers = {}
	for k, v in pairs(ESX.Players) do
		if key then
			if (key == 'job' and v.job.name == val) or v[key] == val then
				xPlayers[#xPlayers + 1] = v
			end
		else
			xPlayers[#xPlayers + 1] = v
		end
	end
	return xPlayers
end
  1. Restart the Server and play S-HUD on your Server!

Thats All! Enjoy the Script on your Server!

Last updated