Installation & Configuration

First, you need to install the scripts required for Qubit Honor System to work. After installing these scripts, you can put qubit-honorsystem into your resources folder and run it.

  • oxmysql / mysql-async

1. Framework Configration

Qubit Honor System supports ESX and QB frameworks. If you're using a different framework, unfortunately you won't be able to run Qubit Honor System.

Open the config.lua and fxmanifest.lua change framework setttings for your needs

QBCore Settings

If you're using the qbcore framework, you should configure the framework settings in the config as follows

Open config.lua and change these lines

Config.Framework = "QB" -- QB, oldESX, ESX
Config.CoreName = 'qb-core' -- qb-core, es_extended
ESX Settings

If you're using the qbcore framework, you should configure the framework settings in the config as follows

Open config.lua and change these lines

Config.Framework = "ESX" -- QB, oldESX, ESX
Config.CoreName = 'es_extended' -- qb-core, es_extended

2. Max Honor Pool

The value of Config.MaxHonorPool determines the minimum and maximum point levels a player can reach. The number you set will also define the negative limit. For example, if you set a limit of 10,000, it means the neutral level is 0, and the honor value can drop as low as -10,000. You can assign levels as percentage values through the config. If you set a wider range of values, you can provide users with less honor, allowing for a longer-lasting progression flow.

3. Honor Levels

Config.HonorLevels determines how many levels a player can reach. A value of 50% represents the NEUTRAL level β€” someone who is neither good nor bad, essentially the balance point of honor. 0% is the lowest possible honor (the worst), and 100% is the highest honor. Following the rules, you can define 3 levels or expand it to 10 levels β€” the range is fully dynamic, and you can add as many levels as you like. For example, if you want to create 3 levels, you can define them as shown below.

Example Three Level Config

5. Decrease & Increase on Killing

You can make it so that when players kill someone with the jobs you specified in the config, their honor value decreases. If a player kills someone with the police job or any of the defined jobs, their honor will decrease. Conversely, if they kill someone not belonging to those jobs, their honor will increase. You can also set how often the honor value changes upon killing using Config.KillCooldown.

6. Setup Database

To run qubit-honorsystemyou need to import the following SQL file.

465B
Open

Setup Finished πŸŽ‰

After configuring your items, you can start using the Qubit Honor System If you encounter any issues during the setup process, please visit our Discord for more comprehensive support.

Last updated

Was this helpful?