# Configuration structure

## 1. Box Configuration

Use the path `stylegroup_battleroyale\shared\config\loots`  If you want to modify loot box locations on specific maps.

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2Fc3A1F8vpX2DYgFOPoOM6%2Flotsd.png?alt=media&#x26;token=72fa714b-0f10-4050-8af4-c6c9bfd58251" alt=""><figcaption></figcaption></figure>

## 2. Vehicle Settings

Use the path `stylegroup_battleroyale\shared\config\vehicles`  If you want to add other types of vehicles and vehicle span coordinates to specific maps.

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FGFWt12M5NcmfqHzT1XsL%2Fveiculosd.png?alt=media&#x26;token=af0c380f-10c9-4c40-a527-38aa21980acc" alt=""><figcaption></figcaption></figure>

## 3. Patents and Rewards

In this configuration step, you can set up the complete Patent/Rank and reward system. You will specify the reward items for each patent, as well as the points required to achieve each patent, and their names if you wish to modify them.

```lua
    [1] = {
        minPoints = 50, -- QUANTIDADE MINIMA DE PONTOS DA PRIMEIRA PATENTE 
        name = 'Esmeralda', -- NOME QUE IRA APARECER DA PATENTE
        photo = 'esmeralda', -- NOME DA IMAGEM DA PATENTE // PARA ALTERAR ACESSE A PASTA INTERFACE DO SCRIPT E APENAS SUBSTITUA A IMAGEM
        prizes = { -- ITENS QUE SERÁ POSSIVEL RESGATAR APÓS ATINGIR A PATENTE ESPECIFICA
            { name = 'Vip Qualquer', image = 'https://support.pbisrewards.com/wp-content/uploads/2021/09/article-reward-group.png', type = 'role',    amount = nil, spawn = 'Ballas' },
            { name = 'Five Seven',   image = 'http://YOUR-IP/scriptbattleroyale/WEAPON_PISTOL_MK2.png',                             type = 'item',    amount = 1,   spawn = 'WEAPON_PISTOL_MK2' },
            { name = 'Moeda',        image = 'http://YOUR-IP/scriptbattleroyale/Dinheiro.png',                                      type = 'money',   amount = 1,   spawn = 'dollar' },
            { name = 'Akuma',        image = 'https://docs.fivem.net/vehicles/akuma.webp',                                          type = 'vehicle', amount = nil, spawn = 'akuma' },
            { name = 'Diamante',     image = 'http://YOUR-IP/scriptbattleroyale/Diamante.png',                                      type = 'gems',    amount = 1,   spawn = 'dollar' },
        },
    },
```

It is possible to award different types of rewards to the winning team, such as:

* Server-specific items.
* Permission groups such as VIPs and others.
* Vehicles.
* Gem system.
* Money.

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FNsc5xZswommzB5wUHLVx%2Fconfig_rankasd.png?alt=media&#x26;token=9e12653a-0cd2-4e13-86d2-2a50788c66e4" alt=""><figcaption></figcaption></figure>

## 4. Points in the match

Use the data in this field to indicate the number of points a player will score for a kill and the score the top 10 players will receive at the end of the event.

```lua
Config.Points = { -- CONFIGURAÇÕES DE PONTUAÇÕES DENTRO DOS EVENTOS
    ['kill'] = 1, -- TOTAL DE PONTOS POR KILL FEITA DENTRO DO EVENTO [MODO FFA NÃO É LEVADO EM CONSIDERAÇÃO]
    ['win'] = 5, -- NÃO MEXA AQUI [APENAS UMA SEGURANÇA CASO VOCÊ MODIFIQUE ERRADO OS PONTOS DE 1 A 10º]
    ['Rank'] = {
        [1] = 10, -- TOTAL DE PONTOS DE QUEM FICAR EM PRIMEIRO LUGAR NO EVENTO
        [2] = 9,  -- TOTAL DE PONTOS DE QUEM FICAR EM SEGUNDO LUGAR NO EVENTO
        [3] = 8,  -- TOTAL DE PONTOS DE QUEM FICAR EM TERCEIRO LUGAR NO EVENTO
        [4] = 7,  -- TOTAL DE PONTOS DE QUEM FICAR EM QUARTO LUGAR NO EVENTO
        [5] = 6,  -- TOTAL DE PONTOS DE QUEM FICAR EM QUINTO LUGAR NO EVENTO
        [6] = 5,  -- TOTAL DE PONTOS DE QUEM FICAR EM SEXTO LUGAR NO EVENTO
        [7] = 4,  -- TOTAL DE PONTOS DE QUEM FICAR EM SETIMO LUGAR NO EVENTO
        [8] = 3,  -- TOTAL DE PONTOS DE QUEM FICAR EM OITAVO LUGAR NO EVENTO
        [9] = 2,  -- TOTAL DE PONTOS DE QUEM FICAR EM NOVO LUGAR NO EVENTO
        [10] = 1  -- TOTAL DE PONTOS DE QUEM FICAR EM DECIMO LUGAR NO EVENTO
    }
}
```

Do not tamper with the code \[win]; it is only a validation in case you make a mistake or delete something in the first 10 positions.

## 5. Match Duration \[Safe Sync]

Modifying this field requires full attention to avoid problems. The data added to the `"maxtimer"` field works in sync with the data added to `"maxZones"` within the `maps.lua`  file.

That is, by default we are sending the script set to a duration of 600 seconds to be distributed across a total of 5 safe zones.

This means that the match will last 10 minutes and will be divided equally among each safe zone.

```lua
Config.GameModes = { -- TEMPO TOTAL DE CADA MODO DE PARTIDA EM SEGUNDOS [OU SEJA, O TEMPO COLOCADO AQUI, SERÁ DIVIDIDO PELO NUMERO DE SEIF COLOCADO EM "maxZones" DENTRO DE MAPS.LUA ]
    ['solo'] = {
        maxTimer = 600 -- 600 SEGUNDOS = [10MINUTOS DE PARTIDA] LOGO 10MINUTOS/DIVIDO POR 5[NUMERO DE SEIF] = 2MINUTOS POR SEIF
    },
    ['duo'] = {
        maxTimer = 600 -- 600 SEGUNDOS = [10MINUTOS DE PARTIDA] LOGO 10MINUTOS/DIVIDO POR 5[NUMERO DE SEIF] = 2MINUTOS POR SEIF
    },
    ['trio'] = {
        maxTimer = 600 -- 600 SEGUNDOS = [10MINUTOS DE PARTIDA] LOGO 10MINUTOS/DIVIDO POR 5[NUMERO DE SEIF] = 2MINUTOS POR SEIF
    },
    ['squad'] = {
        maxTimer = 600 -- 600 SEGUNDOS = [10MINUTOS DE PARTIDA] LOGO 10MINUTOS/DIVIDO POR 5[NUMERO DE SEIF] = 2MINUTOS POR SEIF
    },
    ['custom'] = {
        maxTimer = 600 -- 600 SEGUNDOS = [10MINUTOS DE PARTIDA] LOGO 10MINUTOS/DIVIDO POR 5[NUMERO DE SEIF] = 2MINUTOS POR SEIF
    }
}
```

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FQT5c3zFh6UXnb24zsUmc%2Fmasxonasd.png?alt=media&#x26;token=7824a1a7-a200-43c1-b172-7f0484bbe022" alt=""><figcaption></figcaption></figure>

If you want to increase or decrease the match duration, remember to also modify the number of safe zones.

## 6. Podium FFA

Only the highest-ranked players in Battle Royale will be visible in the HALL.

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FVH27KHLS9UhzCXj1UkHO%2Frankasdfdg.png?alt=media&#x26;token=769007fc-4db2-4e7e-aeed-d4b4256f5269" alt=""><figcaption></figcaption></figure>

```lua
Config.Podium = { -- LOCALIZAÇÕES DOS NPC DO PODIUM DE RANK [TOP 5 JOGADORES] 
    [1] = {
        coords = vector4(-3761.74, -3819.89, 1490.57, 181.42), -- LOCALIZAÇÃO NPC
        ped = 'mp_m_bogdangoon' -- MODELO NPC
    },
    [2] = {
        coords = vector4(-3756.52, -3817.38, 1490.57, 178.59), -- LOCALIZAÇÃO NPC
        ped = 'mp_m_bogdangoon' -- MODELO NPC
    },
    [3] = {
        coords = vector4(-3766.76, -3817.48, 1490.57, 175.75), -- LOCALIZAÇÃO NPC
        ped = 'mp_m_bogdangoon' -- MODELO NPC
    },
    [4] = {
        coords = vector4(-3759.46, -3813.81, 1490.57, 181.42), -- LOCALIZAÇÃO NPC
        ped = 'mp_m_bogdangoon' -- MODELO NPC
    },
    [5] = {
        coords = vector4(-3763.92, -3813.96, 1490.57, 175.75), -- LOCALIZAÇÃO NPC
        ped = 'mp_m_bogdangoon' -- MODELO NPC
    },
}
```

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FjNQdaAoJcH63bOKfEtUv%2Fffa_lobby.png?alt=media&#x26;token=71550efe-a364-41c5-9fa1-980a3da314d3" alt=""><figcaption></figcaption></figure>

## 7. Monetization System

A major advantage of Battle Royale is its automatic management capability, eliminating the need for server administration.

We have the following information available;

```lua
    Monetize = { -- SISTEMA PARA SER USADO CASO VOCÊ QUEIRA MONETIZAR SEU SERVIDOR USANDO O BATTLE ROYALE [ENTREGA DE PERMISSÃO APÓS AQUISIÇÃO/LOJA]
        PermissionEvents = false, -- SE AQUI ESTIVER [TRUE] O COMANDO /EVENTS PASSAR A TER UMA VERIFICAÇÃO DE PERMISSÃO PARA SER USADO / [FALSE] TODOS PODEM ACESSAR
        Permissions = { -- ADICIONE OS GRUPOS/PERMISSÃO QUE PODEM USAR O COMANDO EVENTS CASO ADICIONE [TRUE] EM "PermissionEvents"
            'TorneioBattle',
            'torneiosbattle.permissao'
        }
    },
```

If you set `"PermissionEvents"`  to true, all created events will be checked to see if the player is in a specific group. This group can then be sold in your city store as registrations/vacancies.

Add the names of your server's groups within `"Permissions"`

## 8. Audio settings

The Battle Royale has 4 types of sounds available during events. These are:

* 1 - \[countdown] - 10-second countdown in FFA to start the Battle Royale event.
* 2 - \[gazmexendo] - Information that the gas is starting to move.
* 3 - \[heartbeat] - Heartbeat indicating that you are outside the safe zone and losing health.
* 4 - \[newgas] - This audio will play every time a new safe zone is created on the map.

If you wish to change the audio to other models, just remember to use the same name as the original file.

To modify the audio files, go to the directory:

`stylegroup_stream_battleroyale\web-side\audios`

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FAKhSU32V8g0PSFoqGgK5%2Faudioasd.png?alt=media&#x26;token=40e807bc-9cd1-40ed-8201-1160bed97029" alt=""><figcaption></figcaption></figure>

## 9. Images and logo

If you want to change any image in the Battle Royale script or to insert your server logo, simply go to the directory:

`stylegroup_battleroyale\interface\assets`

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FYUIdNy9NAWyK8bSJiW1J%2Fimageandlog.png?alt=media&#x26;token=b9ebfc33-b226-4072-bade-08dd77c29aa4" alt=""><figcaption></figcaption></figure>

## 10. Image Hosting

The script also has images that need to be hosted somewhere to be available for viewing in the script, such as all the images of:

* Weapons.
* Icons.

You must add the images to the directory of your local machine \[VPS]:

`xampp\htdocs`

Or to any other location where you want to host the images. After performing this action, go to the script's configuration files in gamemode.lua and maps.lua and change the YOUR-IP field to the IP address of your hosting location.

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FDhQOyJ3jqW0I81x33JKM%2Fimagemsoasd.png?alt=media&#x26;token=1a36c1c5-bb17-4fc9-9dfa-bd9ee89604df" alt=""><figcaption></figcaption></figure>

## 11. Reset Database

The Battle Royale mode features a system of Ranks, redeemed Rewards, and all player history data within a match.\
However, we have a way to reset this data if your server wants to at some point.\
Within the directory;

`stylegroup_battleroyale\shared\config/gamemode.lua`\
We have made the variable available with the command;

```lua
CommandResetRanking = 'resetranking', -- Command to reset data
```

By using this command, you will be completely clearing the database.

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2F1bZ6roVCqJk9rBJiHpqr%2Fdados_1.png?alt=media&#x26;token=40fde54f-e1ae-4534-9bcd-b0bb090aa421" alt=""><figcaption></figcaption></figure>

All data already retrieved by the player will be locked again until they reach the required rank again.

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FzxMYWuxDMRUOJ8bqfTie%2Ffgdfgghjghj.png?alt=media&#x26;token=b8d77098-c582-48a4-a315-b4be3a88fc54" alt=""><figcaption></figcaption></figure>

The ranking section will be completely reset with no information displayed.

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FDLDzhaKX9SM0D0VoLbZI%2Ffghfghhjkl.png?alt=media&#x26;token=a5959f8e-fa52-4753-b179-5b01271f467c" alt=""><figcaption></figcaption></figure>

## 12. Maps and vehicles

The Battle Royale mode includes the exclusive FFA Map, exclusive to our product.

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2F0Qlw51Rxx91uHFeOfnRK%2Fmaps_battle.png?alt=media&#x26;token=78c3f031-ccb2-4a0d-986c-8bac125e4652" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FlX5qEMFFFUiKDMZn2nNy%2Fmaps_battle2.png?alt=media&#x26;token=4ee66851-e271-4676-bd7c-486d0306d9a5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FXIgIFDf8983SUStYCmG1%2Fmaps_battle3.png?alt=media&#x26;token=d81493c8-bde5-4c7e-93e3-385a04244380" alt=""><figcaption></figcaption></figure>

It also comes with 2 types of exclusive aircraft.

Model 1 Plane&#x20;

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2Fs6MaDYP5nkmCUU2ntK7t%2Favi%C3%A3o_battle.png?alt=media&#x26;token=87ca0df7-9cf6-4048-b6af-81ca8c936607" alt=""><figcaption></figcaption></figure>

Model 2 Plane&#x20;

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2FAX839kYge7sDK08lRntO%2Favi%C3%A3o_battle2.png?alt=media&#x26;token=773fe29b-9550-493f-a3fe-efc0fed918f6" alt=""><figcaption></figcaption></figure>

Model car

<figure><img src="https://2012973112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlA1DdiXgFSscwcWkO0rz%2Fuploads%2Fum5ZTbcqWqRRDsdLkbwH%2Fcarro_battle.png?alt=media&#x26;token=1f572e56-afc1-45ba-b648-8d592e7ac649" alt=""><figcaption></figcaption></figure>
