๐ ๏ธInstallation
Welcome to our installation guide! In this section, we'll walk you through the steps to effortlessly set up the Script S-Gangwar!
Gangwar System Installation
Follow this steps to install the script:
Download the Script from Keymaster
Drag the Script into your resources
Add this to you your server.cfg:
start S-Gangwar
If the SQL file doesn't insert automatically, insert the SQL file in your database by hand.
CREATE TABLE IF NOT EXISTS `SGangwarZones` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`zonenid` int(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`frakname` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cooldown` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT "0",
PRIMARY KEY (`index`) USING BTREE,
KEY `zonenid` (`zonenid`)
) ENGINE=InnoDB AUTO_INCREMENT=346 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
INSERT INTO `SGangwarZones` (`zonenid`, `frakname`) VALUES
('1', 'grove'),
('2', 'grove'),
('3', 'grove'),
('4', 'grove'),
('5', 'grove'),
('6', 'grove'),
('7', 'grove'),
('8', 'grove');
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
<Optional> Go to line 74 in html/index.js and replace the text with your language
At least go in <esx_ambulancejob> > <client.lua> > <main.lua> and put this at the bottom!
RegisterNetEvent('esx_ambulancejob_Revive_gangwar')
AddEventHandler('esx_ambulancejob_Revive_gangwar', function(x,y,z)
local playerPed = PlayerPedId();
TriggerServerEvent('esx_ambulancejob:setDeathStatus', false)
TriggerServerEvent("esx_ambulancejob:setstabile",false)
local formattedCoordss = {x = x, y = y, z = z }
RespawnPed(playerPed, formattedCoordss, 120.0)
StopScreenEffect('DeathFailOut')
Wait(3000)
end)
Restart the Server and play S-Gangwar on your Server!
Thats All! Enjoy the Script on your Server!
Last updated