> ## 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.

# Configuration

> Complete configuration guide for R_FFA

## Basic Configuration

### Framework Settings

```lua theme={null}
R.Framework = "qbx" -- Options: ESX, qbcore, qbx
R.newESX = true -- false for ESX 1.1
R.CoreName = "es_extended"
R.AmbulanceJob = "qbx" -- Options: esx, wasabi, qb, qbx
```

### Target System

```lua theme={null}
R.UseTarget = false -- Set true if using target
R.Target = "ox_target" -- Options: ox_target, qb-target
```

### Debug Mode

```lua theme={null}
R.Debug = false
R.ZoneDebug = false -- Debug arena zones
```

## Menu Settings

```lua theme={null}
R.MenuSettings = {
    Key = "G", -- Key to open FFA menu
    UseRadialMenu = true, -- Use ox_lib radial menu
}
```

## Commands

```lua theme={null}
R.Commands = {
    weapons = "ffaweapons",
    components = "ffacomp",
    leave = "ffaleave",
    admin = "ffaadmin",
}

R.AdminGroupd = "group.mod" -- Admin permission
```

## Currency Settings

```lua theme={null}
R.Currencies = {
    cash = "currency_cash",
    credits = "currency_credits",
}

-- R_Store integration for credits
R.UseRStoreCredits = true
R.RStoreResourceName = "r_store"
```

## Join Location

Configure where players join FFA:

```lua theme={null}
R.JoinInfo = {
    Model = "ig_joeminuteman",
    Scenario = "WORLD_HUMAN_DRUG_DEALER",

    EnableBlip = true,
    BlipData = {
        Sprite = 110,
        Display = 4,
        Scale = 0.6,
        Colour = 1,
        Name = "FFA Arena"
    },

    Locations = {
        {
            Location = vec4(-257.2, -972.6, 31.2, 250.5),
            BlipPosition = vec3(-258.6, -973.2, 31.2),
        },
    },
}
```

## Wager Settings

```lua theme={null}
R.WagerSettings = {
    CountdownTimeRound = 5, -- Countdown seconds
    CountdownColor = {94, 20, 179}, -- RGB color
}
```

## Logo Configuration

```lua theme={null}
R.DefaultLogo = "nui://r_ffa/html/assets/logo.png"
```

Replace `logo.png` in `html/assets/` with your own logo.

## Example Configurations

<AccordionGroup>
  <Accordion title="ESX with Cash Only" icon="dollar-sign">
    ```lua theme={null}
    R.Framework = "ESX"
    R.newESX = true
    R.UseRStoreCredits = false
    R.Currencies = {
        cash = "currency_cash",
    }
    ```
  </Accordion>

  <Accordion title="QBX with R_Store Integration" icon="link">
    ```lua theme={null}
    R.Framework = "qbx"
    R.UseRStoreCredits = true
    R.RStoreResourceName = "r_store"
    R.Currencies = {
        cash = "currency_cash",
        credits = "currency_credits",
    }
    ```
  </Accordion>

  <Accordion title="With Target System" icon="bullseye">
    ```lua theme={null}
    R.UseTarget = true
    R.Target = "ox_target"
    ```
  </Accordion>
</AccordionGroup>

<CardGroup cols={2}>
  <Card title="Creating Maps" icon="map" href="/r_ffa/creating-maps">
    Learn how to create custom arenas
  </Card>

  <Card title="Common Issues" icon="wrench" href="/r_ffa/common-issues">
    Fix common problems
  </Card>
</CardGroup>
