Skip to main content

Mastering Your FFA Script: Configuration Guide

The FFA Script offers extensive customization options via its configuration files, primarily config.lua and discord.lua. This guide will walk you through each section to help you tailor the script perfectly to your server’s needs.
Always create a backup of your configuration files before making significant changes to avoid losing your settings.

Framework Integration

These settings control how the FFA script integrates with your server’s framework (ESX or QBCore).

Basic Framework Setup

Choose between ESX and QBCore frameworks:

Framework Initialization Functions

If you’re using an older version of ESX that uses events instead of exports, modify the initialization functions to use TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) instead.

Inventory System Options

Configure how weapons are given and handled with your inventory system:
Different inventory systems require different approaches for handling weapons. If you’re using a custom inventory system, you may need to modify these functions to match your system’s requirements.

Inventory Clearing Functions

General Settings

Configure the core functionality and behavior of the FFA script.

Server and Debug Settings

Money and Economy Settings

Find key codes for Config.OpenMenuKey in the FiveM documentation.

Respawn Configuration

Combat Settings

Default Player Options

Weapon Settings

Weapon settings control how and when players receive weapons in FFA zones, along with ammo quantities. Adjust these based on your server’s gameplay style.

Gameplay Features

Configure special gameplay features like killstreaks, hitmarkers, and special event handlers.

Killstreak Configuration

You can customize killstreak rewards to offer special weapons, armor, or other bonuses at specific streak milestones.

Hitmarker & Notification Settings

Map Locations & Zones

Configure FFA markers on the map and define combat zones with their properties.

Map Marker Configuration

FFA markers are the points where players interact to enter FFA zones:
For marker and blip types, colors, and other options, refer to the FiveM documentation on markers and blips.

Combat Zone Configuration

FFA zones define the combat areas where players fight:
Each zone should have a unique DimensionID to prevent players in different zones from seeing each other. Make sure your server has OneSync Infinity enabled for the dimension feature to work.

Game Modes & Economy

Configure different game modes with their own rules and economy settings.

Available Game Modes

Create game modes with different risk/reward profiles to appeal to different player types. High-risk modes like Hardcore can create exciting tension, while Normal modes can be more accessible.

Discord Integration

Configure Discord webhook integration for announcements and logging.

Basic Discord Setup

Discord webhooks allow your server to automatically post FFA events, leaderboards, and other important information to your Discord server. This helps keep your community engaged and aware of in-game activities.

🚀 Pro Tips for Optimization

Take your FFA setup to the next level with these advanced strategies:
  • Balance Game Modes: Create a mix of high-risk/high-reward and low-risk/low-reward game modes to appeal to different player preferences.
  • Strategic Zone Placement: Place FFA zones away from important roleplay areas to avoid disrupting RP experiences.
  • Weapon Progression: Consider creating zones with progressively better weapons that cost more to enter, creating a sense of progression.
  • Custom Rewards: Use the Config.KillStreakNotification function to give unique rewards for impressive killstreaks.
  • Seasonal Events: Temporarily modify zone settings, game modes, or rewards to create special seasonal events.
Remember to restart the resource after making configuration changes for them to take effect.