Configuration
Todo se edita en shared/config.lua.
Idioma y framework
Config.Framework = 'auto' -- 'auto', 'qbox', 'qb', 'esx'
Config.Locale = 'es' -- 'es' o 'en'
Slots
Config.Slots = {
default = 1, -- slots iniciales por jugador
max = 3, -- tope duro (maximo 3)
unlockCommand = 'coldaddslot', -- comando para anadir slot
ace = 'admin', -- permiso ACE necesario
}
Apariencia y preview
Config.Appearance = {
preview = 'auto', -- 'auto', 'illenium', 'fivem_appearance', 'custom', 'none'
qboxCreator = 'auto', -- selector de ropa para Qbox
qbcoreCreator = 'auto',
esxCreator = 'auto',
esxPreview = 'users_skin',
}
auto detecta lo que tengas iniciado. Si ninguna opcion funciona, cae a un freemode aleatorio.
Intro
Config.Intro = {
enabled = true,
backgroundImage = 'assets/gta-v-gtav-gta-gta5-gta-5-gta.jpg',
logoImage = 'assets/coldstore-logo.png',
logoText = '',
menu = {
{ id = 'settings', label = 'Settings', action = 'settings' },
{ id = 'play', label = 'Play', action = 'play' },
{ id = 'rules', label = 'Rules', action = 'pdf', url = 'assets/rules.pdf' },
}
}
Cada menu item soporta action: 'settings', 'play', 'pdf' (archivo local en html/) o 'url' (externo).
Logout
Config.Logout = {
enabled = true,
command = 'logout',
}
Spawn
Config.DefaultSpawn = vec4(-540.58, -212.02, 37.65, 208.88)
Config.SpawnMode = {
existing = 'cinematic_selector', -- 'cinematic_selector', 'last_location', 'default'
new = 'cinematic_selector',
}
Opciones del cinematic:
Config.CinematicSpawn = {
enabled = true,
includeDefault = true,
locations = {
{
id = 'legion',
label = 'Legion Square',
description = 'Centro de Los Santos',
coords = vec4(195.17, -934.17, 30.68, 144.0)
},
-- anade mas
}
}
Panel admin (opcional)
Config.PlayerManager = {
enabled = true,
command = 'players',
ace = 'admin',
pageSize = 24,
maxPageSize = 60,
}