πŸ› οΈInstallation

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

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-Christmas

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

CREATE TABLE IF NOT EXISTS `SChristmasVIP` (
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`index`),
  KEY `identifier` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `SChristmasVIPRedeem` (
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `tbxid` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`index`),
  KEY `tbxid` (`tbxid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `SChristmasGifts` (
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(50) DEFAULT NULL,
  `typeofcalender` varchar(6) DEFAULT NULL, 
  `opendays` text DEFAULT NULL,
  `vipdoor` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`index`),
  KEY `identifier` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;
  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-Christmas on your Server!

Last updated