πŸ› οΈInstallation

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

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

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

ALTER TABLE owned_vehicles
ADD `imgsrc` varchar(250) DEFAULT "carpictures/car1.png", 
ADD `star` varchar(10) DEFAULT false,
ADD `label` varchar(10) DEFAULT NULL;

CREATE TABLE IF NOT EXISTS `S_Factions_Storage` (
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `gangname` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `item` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `label` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `count` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `typeofitem` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`index`) USING BTREE,
  KEY `item` (`item`)
) ENGINE=InnoDB AUTO_INCREMENT=346 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `S_Factions_Factions` (
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `gangname` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `wallet`int(20) COLLATE utf8mb4_unicode_ci DEFAULT "0",
  `upgradestatestorage` int(20) COLLATE utf8mb4_unicode_ci DEFAULT "0",
  `upgradeautohaus`int(20) COLLATE utf8mb4_unicode_ci DEFAULT "0",
  `upgradekonto` int(20) COLLATE utf8mb4_unicode_ci DEFAULT "0",
  `upgradeshop`int(20) COLLATE utf8mb4_unicode_ci DEFAULT "0",
  PRIMARY KEY (`index`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=346 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

CREATE TABLE IF NOT EXISTS `S_Factions_PlayTime` (
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `day`varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,  
  `date`varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `playtime` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT "0",
  PRIMARY KEY (`index`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=346 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

ALTER TABLE job_grades
ADD `invite` varchar(10) DEFAULT "false";

ALTER TABLE users
ADD `frakspeere` varchar(10) DEFAULT "false";
  1. Jobs have to be existing. This SQL is an example on "How to create a job in ESX"

  1. For ESX 1.1 and 1.2 insert this in <es_extended> > <server> > <functions.lua> under ESX.GetPlayers

  1. Restart the Server and play S-Factions on your Server!

Last updated