gearConfiguration

βš™οΈ Configuration (config.lua)

The config.lua file is fully commented and allows you to customize every major aspect of the Space Cockfight script.


πŸ”‘ General Settings

Setting
Description

Config.OpenMenuKey

The keyboard key used to open the arena panel.

Config.DefaultLanguage

Sets the default language for the script ('en' or 'pt-br').

Config.RoosterModel

The ped model used to represent the rooster in the arena.

Config.RoosterItem

The item name in ox_inventory that represents a rooster.


🏟️ Arena Settings

Setting
Description

Config.ViewingPos

Coordinates where the player is moved to spectate the fight.

Config.ArenaCenter

Center coordinates of the fighting arena.

Config.AudienceModels

List of ped models to be used as random spectators.

Config.AudiencePeds

Specific coordinates where the audience NPCs will spawn.


πŸ“ˆ Progression & Stats

Setting
Description

Config.XpNeededToLevelUp

XP required for a rooster to level up.

Config.XpPerWinSolo

Base XP awarded for winning a solo (PvE) training fight.

Config.XpPerWinPVP

XP awarded for winning a PvP fight against another player.

Config.UpgradePointsPerLevel

Number of attribute points gained when a rooster levels up.

Config.UpgradeAmounts

Defines how much each stat (hp, ataque, defesa) increases per upgrade point.


πŸ₯Š Training Mode (PvE)

Setting
Description

Config.SoloOpponents

Table where you define NPC opponents for training mode, including their stats and XP rewards.


⏱️ Cooldown Settings

Setting
Description

Config.CooldownHours

Duration (in hours) a losing rooster must wait before fighting again.


🌐 Language & Translations

Setting
Description

Config.Lang

Contains all translation strings for notifications and the UI.

Last updated