Settings

🎮 Arena PvP — Script Configuration (config.lua)

This page explains how to configure the Arena PvP through the config.lua file in a simple and clear way.

You will understand:

  • What each configuration does

  • What you can safely edit

  • How each game mode works

  • How to configure maps properly

⚠️ After editing config.lua, always restart the resource:

restart energy_arenapvpv3

📂 File Location

The configuration file is usually located at:

shared/config.lua

or

config.lua

🌎 General Settings

🔤 Language

Defines the script language.

Value
Language

en

English

ptbr

Portuguese

es

Spanish

fr

French

Example:


Image displayed in the Arena menu.

  • Must be a direct image URL (png/jpg/webp).

  • You can use Postimg, Imgur, etc.


🔫 Weapon Spawn Mode

spawnWeapon

Value
Description

client

Weapon given by client (default)

server

Weapon given by server (recommended for stricter anti-cheat setups)

If needed:

spawnAmmoo

🚫 Do not change this value.


🎮 Commands

Open Arena Command

  • name → command players type (example: /arena)

  • enable → enable or disable the command

Example:


Exit Arena Command

Players exit using:


Open Menu via Event

You can also open the Arena menu using:


📍 Arena Marker (Locations)

Defines where the Arena access marker appears.

To add more locations:

If the marker does not appear, the Z coordinate is usually incorrect.


💥 Defuse Explosion

Value
Result

true

Bomb explosion enabled

false

Explosion disabled (recommended if using anti-cheat)


🎬 Animations

Defines the death animation inside Arena.

Normally you do not need to edit this.


⌨ Keys (Keybinds)

Leave Training

  • key → key to leave training

  • description → displayed text

  • command → internal command triggered

Example:


💰 Defuse Economy

Defines rewards in Defuse mode:

  • kill → money per kill

  • loseRound → reward for losing round

  • winRound → reward for winning round

  • plantSpike → reward for planting the bomb


🛒 Buy Phase (Defuse Shop)

Explanation

  • key → key to open shop

  • timeToBuy → buy phase duration (seconds)

  • initialMoney → starting money

  • percentageSell

    • 1 = 100%

    • 0.5 = 50%


Default Weapons

Defines the weapons players start with.


Store Structure

Each category inside store looks like:

To add a weapon:

  • label → display name

  • key → weapon name

  • price → cost

  • ammo → ammo amount

  • type → category


🎯 Game Modes (Modes)


Deathmatch

  • randomCoords → random spawn positions

  • autoRespawn → instant respawn


Gungame

  • finishKill → kills required to win

  • killsToUpgrade → kills to switch weapon

The weapons list defines the weapon order.


Defuse

  • roundTime → round duration

  • timeToDefuse → time required to defuse

  • maxRounds → maximum rounds

  • buyPhase → enables shop

ChooseTeam

Handles:

  • Team selection time

  • Attack team spawns

  • Defense team spawns

  • Camera position during selection


Training Mode

Contains two sub-modes:

Aimlab

Aim training with fixed target positions.

NPC

Training against NPC enemies.


🗺 Maps

Each map contains:

arenaData

  • cds → map center

  • range → map radius

gamemodes

Defines allowed modes:

To disable a mode:

randomCoords

List of random spawn locations.

spike

Defines plant zones in Defuse mode:

  • radius → plant area radius

  • radiusToDefuse → defuse distance

  • coords → bomb position


🏠 Lobby

Defines:

  • Player spawn position in lobby

  • Heading (direction)

  • Camera position

  • Zoom (FOV)


🚨 Common Issues

Marker not appearing

  • Z coordinate incorrect

  • Resource not restarted

Players spawning on top of each other

  • Not enough spawn points in randomCoords

  • Not enough spawns in coordsAttack/coordsDefense

Defuse not starting

  • players.min too high

  • Map has Defuse disabled

Atualizado