Config
Config = {}
-- Framework configuration: choose the framework you are using ('newesx', 'oldesx', 'qbcore', or custom).
Config.Framework = 'newesx'
-- Inventory configuration: specify the inventory system ('es_extended', 'ox_inventory', 'qbcore', or 'none' if not using any inventory).
Config.Inventory = 'none'
-- Revive system: select the system for handling player revives ('es_extended', 'qbcore', or custom).
Config.ReviveSystem = 'es_extended'
-- Command settings: enable/disable the command and define its name.
Config.EnableCommand = true
Config.Command = "duelos"
-- Keymapping settings: enable/disable key mapping and define the key to trigger actions.
Config.EnableKeymapping = false
Config.Key = "O"
-- NPC settings: enable/disable NPCs, configure their spawn details, interaction distance, and appearance.
Config.EnableNPC = true
Config.RenderNPCDistance = 150.0
Config.NPCHash = "a_m_m_skidrow_01"
Config.NPCCoords = {
vector4(-242.4755, -2025.0988, 29.9460, 236.4655)
}
Config.EnableNPCText = true
Config.DrawDistanceText = 3.0
Config.NPCKey = 38
-- Inventory management: enable automatic management of inventories during tournaments.
Config.AutoInventoryManagement = true
-- Debug mode: enable debugging to troubleshoot or test configurations.
Config.Debug = true
-- Match timing: define the countdown before the match starts.
Config.SecondsToStart = 5
-- Tournament expiration: set the duration for tournaments and cleanup time after expiration.
Config.ExpirationTournamentTime = 600
Config.DeleteAfter = 120
-- Auto-start settings: automatically start the tournament when the lobby is full.
Config.AutoStartWhenFull = true
Config.SecondsAfterFullForAutoStart = 60
-- Rounds: configure simultaneous rounds and default round durations.
Config.RoundsAtTheSameTime = false
Config.DefaultRoundSeconds = 60
Config.NumberOfRoundSeconds = {
['60'] = 60,
['120'] = 120,
['180'] = 180,
}
-- Team settings: define the default and available maximum number of teams.
Config.DefaultMaxTeams = 2
Config.NumberOfMaxTeams = {
['2'] = 2,
['4'] = 4,
['8'] = 8,
['16'] = 16
}
-- Rounds per tournament: set the default and available number of rounds.
Config.DefaultRound = 3
Config.NumberOfRounds = {
['1'] = 1,
['3'] = 3,
['5'] = 5,
['7'] = 7,
['9'] = 9,
}
-- Tournament modality: configure the default and available modalities.
Config.DefaultModality = 1
Config.NumberOfModalities = {
['1'] = 1,
['2'] = 2,
['3'] = 3,
['5'] = 5,
}
-- Betting: define the default bet amount and available options.
Config.DefaultBet = 0
Config.Bets = {
['0'] = 0,
['2500'] = 2500,
['5000'] = 5000,
['7500'] = 7500,
}
-- Maps: configure maps with images, labels, and spawn points for teams.
Config.Maps = {
{
image = '1.png',
label = 'Mapa 1',
spawns1 = {
vector4(-2973.426, 6531.2744, 444.65786, 65.226898)
},
spawns2 = {
vector4(-3028.607, 6555.6459, 444.65795, 244.40367)
},
},
-- Add additional maps below with the same structure.
}
-- Weapons: define available weapons and ammunition for players.
Config.Weapons = {
{
name = 'Pistola AP',
items = {
['WEAPON_APPISTOL'] = 1,
['ammo-9'] = 90
},
image = 'ap_pistol.jpg'
},
-- Add additional weapons below with the same structure.
}
-- User groups: define which user groups are allowed to create tournaments.
Config.GroupsAllowedToCreate = {
["admin"] = true,
["mod"] = true,
["user"] = true,
}
-- Language and localization: configure the language ('en', 'es', etc.) and corresponding translations.
Config.LI = 'en'
Config.Locale = {}
-- Add translations in 'Config.Locale' for supported languages.
Last updated