Skip to content

Installation

This guide will walk you through installing prp-boxing on your FiveM server.

Installation steps

1
Download the resources
Download both prp-boxing, prp-boxing-assets and prp-minigames from the CFX portal and place them in your resources folder.
2
Add to server.cfg
Add prp-boxing and prp-boxing-assets to your server.cfg after all dependencies.
ensure oxmysql
ensure ox_lib
ensure prp-bridge
ensure prp-minigames
ensure prp-boxing-assets
ensure prp-boxing
3
Start the server
The boxing_matches table is created automatically on first run.
4
Configure rings
Open config/sh_config.lua and configure your rings (see Configuration).

Database

The resource creates the following table automatically:

sql
CREATE TABLE IF NOT EXISTS `boxing_matches` (
    `id`           int(11) NOT NULL AUTO_INCREMENT,
    `firstPlayer`  varchar(255) NOT NULL,
    `secondPlayer` varchar(255) NOT NULL,
    `wonPlayer`    varchar(255) DEFAULT NULL,
    `isKo`         int(11) NOT NULL DEFAULT 0,
    `endTime`      datetime DEFAULT current_timestamp(),
    PRIMARY KEY (`id`)
);

Debug Mode

Debug logging can be toggled at runtime without a restart:

# Enable
setr boxing_debug 1

# Disable
setr boxing_debug 0

It can also be set permanently in sh_config.lua:

lua
Config.Debug = true