Installation Guide

Complete Installation

1

Download the Resource

  1. Purchase the script from Resrant Scripts
  2. Download the ZIP file from your Cfx.re Keymaster (“Purchased Assets” tab)
Regularly check Keymaster for updates to your purchased resources.
2

Prepare Your Database

Import the insert.sql file (included with the script) into your server’s database.
insert.sql
CREATE TABLE `ffa_users` (
  `id` int(11) NOT NULL,
  `url` varchar(255) DEFAULT 'http://i.imgur.com/gsnPQRw.png',
  `identifier` varchar(255) NOT NULL,
  `name` longtext NOT NULL,
  `steamname` longtext DEFAULT NULL,
  `kills` int(11) NOT NULL DEFAULT 0,
  `deaths` int(11) NOT NULL DEFAULT 0,
  `playtime` varchar(255) DEFAULT '0',
  `loadout` longtext DEFAULT NULL,
  `options` varchar(255) DEFAULT '"[]"'
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

ALTER TABLE `ffa_users`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `ffa_users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
COMMIT;

CREATE TABLE `ffa_chart` (
  `id` int(11) NOT NULL,
  `chart` longtext DEFAULT NULL,
  `categories` longtext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `ffa_chart`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `ffa_chart`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
COMMIT;
Ensure your database user has permissions to create tables and modify them.
3

Add the Resource to Your Server

  1. Unzip the downloaded file. This will create a folder (e.g., rs_ffa).
  2. Transfer this folder into your server’s resources directory.
For best results, upload the ZIP file directly to your server and extract it there to avoid file corruption.
4

Enable the Resource in Server Configuration

Open your server.cfg file and add the following line, replacing [resource_name] with the actual folder name of the script:
server.cfg
ensure [resource_name]
For example: ensure rs_ffa
The ensure command is preferred over start as it manages resource dependencies more effectively.
5

Configure the Script (Basic)

Navigate to the resource’s folder and open config.lua with a text editor. Review basic settings. Detailed configuration is covered separately.
Always refer to the specific documentation page for your resource for detailed configuration guidance.
6

Start/Restart Your Server

Launch your FiveM server or restart it if it’s already running.
A full server restart is recommended when adding new resources to ensure all changes are applied correctly.
Verify that the resource is running correctly by checking the server console for any error messages related to the script.