Skip to main content

Prerequisites

1

Required Dependencies

  • ox_lib - UI and utilities
  • ox_inventory - Weapon management
  • oxmysql - Database operations
  • Framework - ESX, QBCore, or QBX

Installation Steps

1

Download & Extract

Download R_FFA and place it in your resources folder as r_ffa
2

Database Setup

Import the SQL file:
CREATE TABLE IF NOT EXISTS `r_ffa` (
    `citizen_id` CHAR(50) DEFAULT NULL,
    `username` VARCHAR(100) DEFAULT 'Unknown',
    `kills` VARCHAR(50) NOT NULL DEFAULT '0',
    `deaths` BIGINT(20) NOT NULL DEFAULT '0',
    PRIMARY KEY (`citizen_id`) USING BTREE
) ENGINE=InnoDB COLLATE='utf8mb4_general_ci';
Or enable auto-insert:
R.EnableAutoinsert = true
3

Configure Framework

Edit config.lua:
R.Framework = "qbx" -- ESX, qbcore, or qbx
R.newESX = true
R.CoreName = "es_extended"
R.AmbulanceJob = "qbx" -- esx, wasabi, qb, or qbx
4

Configure Target (Optional)

R.UseTarget = false -- Set true if using target
R.Target = "ox_target" -- or "qb-target"
5

Add to server.cfg

ensure ox_lib
ensure ox_inventory
ensure oxmysql
ensure es_extended
ensure r_ffa
6

Start Server

Perform a full server restart

Verify Installation

  1. Find the FFA join location (default: -257.2, -972.6, 31.2)
  2. Press G (default menu key) near the NPC
  3. Join an arena and test functionality

Commands

CommandDescription
/ffaweaponsManage weapons
/ffacompManage weapon components
/ffaleaveLeave arena
/ffaadminAdmin menu (requires permission)

Next: Configuration

Configure your FFA system