๐Ÿ› ๏ธInstallation

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

Clothingshop 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-Warehouse

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

CREATE TABLE IF NOT EXISTS `S_Warehouse` (
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `id` int(20) DEFAULT NULL,
  `identifier` varchar(50) DEFAULT NULL,
  `information` text DEFAULT NULL,
  `whitelistet` text DEFAULT "{}",
  `cache` text DEFAULT "{}",
  PRIMARY KEY (`id`),
  KEY `index` (`index`),
  KEY `identifier` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `S_Workbench` (
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `id` int(20) DEFAULT NULL,
  `tabindex` int(20) DEFAULT NULL,
  `identifier` varchar(50) DEFAULT NULL,
  `information` text DEFAULT "{}",
  PRIMARY KEY (`index`),
  KEY `identifier` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

-- For some items
INSERT INTO `items`(name, label, `weight`, `rare`, `can_remove`) VALUES
("metall", "Metall", 1, 1 ,2),
("waffenteile", "Waffenteile", 1, 1 ,2),
("aufsatzteile", "Aufsatzteile", 1, 1 ,2),
("flashlight", "Flashlight", 1, 1 ,2),
("luxuryfinish", "Luxuryfinish", 1, 1 ,2),
("suppressor", "Suppressor", 1, 1 ,2),
("extendedclip", "Extendedclip", 1, 1 ,2);
  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-Warehouse on your Server!

Thats All! Enjoy the Script on your Server!

Last updated