r_ffa Creating Arenas
Add r_ffa arenas, public lobbies and weapons in config.lua: zones, spawn points, duel spawns and a checklist for every new arena.
- An arena is a place: a zone, spawn points and an image.
- A public lobby is a match on an arena with a weapon set, player limit and armor.
- Custom lobbies are made by players from any arena that isn't
duelOnly. - Duels use an arena's
duelSpawns.
Ships with Paleto Bay, Bunker and the Rampit 1v1 map.
Arenas
R.Arenas = {
paleto = {
label = 'Paleto Bay',
image = 'https://r2.fivemanage.com/96KjdV70TOJyTXECX6XHA/image/pohjone.png',
zone = { type = 'sphere', coords = vec3(-111.86, 6421.03, 31.43), radius = 90.0 },
spawns = {
vec3(-58.20, 6487.37, 31.50),
vec3(-40.94, 6456.73, 35.25),
vec3(-42.51, 6415.77, 31.49)
},
duelSpawns = { vec3(-58.20, 6487.37, 31.50), vec3(-119.29, 6357.80, 31.46) },
allowDuel = true
},
}| Field | What it does |
|---|---|
key (paleto) | The name lobbies use (arena = 'paleto'). |
label / image | Name and picture in the hub. Any URL or nui:// path. |
zone | Where players must stay. A sphere or a poly. |
spawns | Respawn points. Must be inside the zone. |
duelSpawns | Two points, one per duel player. |
allowDuel | Can be picked for duels. |
duelOnly | Only for duels, hidden from lobbies. |
A polygon zone:
zone = { type = 'poly', points = { vec3(...), vec3(...), ... }, thickness = 40.0 }Set R.Debug = true to see the zones in-game while you place them.
Public Lobbies
R.Lobbies = {
{
id = 'paleto_pistols',
arena = 'paleto',
label = 'Paleto Bay',
description = 'Pistols only',
weapons = { 'weapon_pistol_mk2', 'weapon_vintagepistol', 'weapon_heavypistol' },
maxPlayers = 20,
armor = true
},
}Every weapon here must also be in R.Weapons. armor = true gives full armor on every spawn.
Weapons
R.Weapons = {
{ name = 'weapon_pistol', label = 'Pistol' },
{ name = 'weapon_carbinerifle', label = 'Carbine Rifle' },
}The weapons players can pick for custom lobbies and duels. Ships with 25. Add-on weapons work too,
the image comes from R.WeaponImage.
New arena checklist
Pick the area
Somewhere with cover and clear edges. Note the centre and a radius, or the corners for a polygon.
Collect spawn points
Six to ten spread over the area, plus two facing points for duels.
Add it
Add the arena to R.Arenas, and a lobby to R.Lobbies if you want a public one.
Test
restart r_ffa, join, walk to the edge to check the zone and try every spawn.