wrenchInstallation

🛠️ Installation

Follow these steps to correctly install Space Cockfight on your server.


1️⃣ Database

Execute the SQL code from sql.sql in your database. This will create the galos_competicao table to store all rooster data:

CREATE TABLE `galos_competicao` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `owner_identifier` VARCHAR(100) NOT NULL,
  `nome` VARCHAR(50) NOT NULL DEFAULT 'Galo',
  `nivel` INT(11) NOT NULL DEFAULT 1,
  `xp` INT(11) NOT NULL DEFAULT 0,
  `pontos_upgrade` INT(11) NOT NULL DEFAULT 0,
  `vitorias` INT(11) NOT NULL DEFAULT 0,
  `derrotas` INT(11) NOT NULL DEFAULT 0,
  `stat_hp` INT(11) NOT NULL DEFAULT 100,
  `stat_ataque` INT(11) NOT NULL DEFAULT 10,
  `stat_defesa` INT(11) NOT NULL DEFAULT 5,
  `cooldown_until` BIGINT(20) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
);

2️⃣ Item Setup (ox_inventory)

Add the galo_atleta item to your ox_inventory items file. Adjust the item name in config.lua if needed:

  • Item Image: galo_atleta.png is included for use in your inventory.


3️⃣ Resource Installation

  1. Place the script folder into your server's resources directory.

  2. Add the following line to your server.cfg:


4️⃣ Configuration

Open config.lua and adjust settings to fit your server’s preferences:

  • Item names

  • Arena settings

  • Cooldown timers

  • Rewards and progression

Last updated