๐Ÿ› ๏ธInstallation

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

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

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

CREATE TABLE IF NOT EXISTS `SFFAPlayerData` (
  `index` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT "User",
  `profilbildurl` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT "https://i.ibb.co/Tw6VGK3/man-avatar-icon-flat-vector.jpg",
  `kills` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT "0",
  `deaths` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT "0",
  `activenotify` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT "true",
  `streamingmodus` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT "false",
  `activehud` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT "true",
  `alwaysday` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT "false",
  `activeraining` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT "true",
  PRIMARY KEY (`index`) USING BTREE,
  KEY `name` (`name`)
) 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. At least go in <esx_ambulancejob> > <client.lua> > <main.lua> and put this at the bottom!

RegisterNetEvent('esx_ambulancejob_Revive_ffa')
AddEventHandler('esx_ambulancejob_Revive_ffa', 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)
  1. Restart the Server and play S-FFA on your Server!

Thats All! Enjoy the Script on your Server!

Last updated