Documentation Index
Fetch the complete documentation index at: https://docs.r-scripts.net/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Required Dependencies
- ox_lib - UI and utilities
- ox_inventory - Weapon management
- oxmysql - Database operations
- Framework - ESX, QBCore, or QBX
Installation Steps
Download & Extract
Download R_FFA and place it in your resources folder as r_ffa
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
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
Configure Target (Optional)
R.UseTarget = false -- Set true if using target
R.Target = "ox_target" -- or "qb-target"
Add to server.cfg
ensure ox_lib
ensure ox_inventory
ensure oxmysql
ensure es_extended
ensure r_ffa
Start Server
Perform a full server restart
Verify Installation
- Find the FFA join location (default:
-257.2, -972.6, 31.2)
- Join an arena and test functionality
Commands
| Command | Description |
|---|
/ffaweapons | Manage weapons |
/ffacomp | Manage weapon components |
/ffaleave | Leave arena |
/ffaadmin | Admin menu (requires permission) |
Next: Configuration
Configure your FFA system