Configurações

Introdução

Este documento fornece detalhes sobre o arquivo de configuração da Criação de Personagem, concentrando-se especialmente nas configurações contidas no arquivo globalconfigs.lua. O arquivo globalconfigs.lua pode ser localizado em common/configs/globalconfigs.lua dentro da estrutura de diretórios do script.


Configurações Padrões

Configurações do Sistema

Configurações

token string

Local onde você deverá inserir seu token de autorização


updater boolean

Determina se o script pode executar atualizações automáticas.


prefixIdentifier boolean

Indica ao sistema se sua base utiliza prefixos nos identificadores armazenados no banco de dados como por exemplo: steam:, discord:, license: e ip:.


processSpawn boolean

Indica ao sistema se você deseja utilizar o nosso gerenciador de spawn ou se você quer utilizar um customizado através do character:processSpawn


onePerson boolean

Determina se o sistema deve ter somente um personagem por conta.


skinshopAfterCreator boolean

Define se a Loja de Roupas deverá ser aberta após criar o personagem. (Compatível apenas com guardian-customization).


cutsceneAfterCreator boolean

Define se a cutscene deverá ser executada após a finalização da criação de personagem.


spawnCoords array

Coordenadas de spawn do personagem após criar o personagem.


positionCreator array

Coordenadas de onde ficará o personagem ao criar o personagem.


Template cópia das configurações

globalconfigs.lua
cfg.token = "seu-token-aqui"
cfg.updater = true
-----------------------------------------------------------------------------------------------------------------------------------------
-- CONFIG CORE
-----------------------------------------------------------------------------------------------------------------------------------------
cfg.prefixIdentifiers = false
cfg.processSpawn = false
cfg.skinshopAfterCreator = false
cfg.cutsceneAfterCreator = false
cfg.onePerson = true
cfg.spawnCoords = { -1038.01,-2738.16,13.80,333.10 }
cfg.positionCreator = { 280.65,-411.7,28.05 }
Configurações de Imagens

Template cópia das configurações

globalconfigs.lua
cfg.paths = {
    ["hair"] = "http://dev.mave-rp.com/images/Barbershop/",
    ["face"] = "https://old.guardianstore.com.br/images/Rostos/",
}

Criação de Personagem

Configuração de Roupas

Configuração para as roupas padrões tanto para a hora que estiver criando o personagem, tanto para roupas padrão caso a loja de roupas esteja desativa após a criação do personagem.

globalconfigs.lua
cfg.clothes = {
    ["Create"] = {
        ["Male"] = { 
            ["torso"] = { ["item"] = 15, ["texture"] = 0 },
            ["shoes"] = { ["item"] = 34, ["texture"] = 0 },
            ["decals"] = { ["item"] = 0, ["texture"] = 0 },
            ["vest"] = { ["item"] = 0, ["texture"] = 0 },
            ["arms"] = { ["item"] = 15, ["texture"] = 0 },
            ["ear"] = { ["item"] = -1, ["texture"] = 2 },
            ["watch"] = { ["item"] = -1, ["texture"] = 0 },
            ["glass"] = { ["item"] = -1, ["texture"] = -1 },
            ["bag"] = { ["item"] = 0, ["texture"] = 0 },
            ["pants"] = { ["item"] = 18, ["texture"] = 0 },
            ["bracelet"] = { ["item"] = -1, ["texture"] = -1 },
            ["accessory"] = { ["item"] = 0, ["texture"] = 0 },
            ["tshirt"] = { ["item"] = 15, ["texture"] = 0 },
            ["mask"] = { ["item"] = 0, ["texture"] = 0 },
            ["hat"] = { ["item"] = -1, ["texture"] = -1 },
        },
        ["Female"] = {
            ["torso"] = { ["item"] = 15, ["texture"] = 0 },
            ["shoes"] = { ["item"] = 35, ["texture"] = 0 },
            ["tshirt"] = { ["item"] = 15, ["texture"] = 0 },
            ["vest"] = { ["item"] = 0, ["texture"] = 0 },
            ["arms"] = { ["item"] = 15, ["texture"] = 0 },
            ["ear"] = { ["item"] = -1, ["texture"] = -1 },
            ["watch"] = { ["item"] = -1, ["texture"] = -1 },
            ["decals"] = { ["item"] = 0, ["texture"] = 0 },
            ["bag"] = { ["item"] = 0, ["texture"] = 0 },
            ["pants"] = { ["item"] = 15, ["texture"] = 0 },
            ["glass"] = { ["item"] = -1, ["texture"] = -1 },
            ["bracelet"] = { ["item"] = -1, ["texture"] = -1 },
            ["accessory"] = { ["item"] = 0, ["texture"] = 0 },
            ["mask"] = { ["item"] = 0, ["texture"] = 0 },
            ["hat"] = { ["item"] = -1, ["texture"] = -1 },
        }
    },
    ["Init"] = {
        ["Male"] = { 
            ["vest"] = { ["item"] = 0, ["texture"] = 0 },
            ["torso"] = { ["item"] = 1, ["texture"] = 0 },
            ["decals"] = { ["item"] = 0, ["texture"] = 0 },
            ["pants"] = { ["item"] = 6, ["texture"] = 0 },
            ["shoes"] = { ["item"] = 1, ["texture"] = 0 },
            ["glass"] = { ["item"] = -1, ["texture"] = -1 },
            ["mask"] = { ["item"] = 0, ["texture"] = 0 },
            ["arms"] = { ["item"] = 0, ["texture"] = 0 },
            ["watch"] = { ["item"] = -1, ["texture"] = -1 },
            ["bracelet"] = { ["item"] = -1, ["texture"] = -1 },
            ["hat"] = { ["item"] = -1, ["texture"] = 0 },
            ["bag"] = { ["item"] = 0, ["texture"] = 0 },
            ["ear"] = { ["item"] = -1, ["texture"] = -1 },
            ["tshirt"] = { ["item"] = 15, ["texture"] = 0 },
            ["accessory"] = { ["item"] = 0, ["texture"] = 0 },
        },
        ["Female"] = {
            ["vest"] = { ["item"] = 0, ["texture"] = 0 },
            ["torso"] = { ["item"] = 2, ["texture"] = 0 },
            ["decals"] = { ["item"] = 0, ["texture"] = 0 },
            ["pants"] = { ["item"] = 14, ["texture"] = 0 },
            ["ear"] = { ["item"] = -1, ["texture"] = -1 },
            ["glass"] = { ["item"] = -1, ["texture"] = -1 },
            ["mask"] = { ["item"] = 0, ["texture"] = 0 },
            ["arms"] = { ["item"] = 14, ["texture"] = 0 },
            ["watch"] = { ["item"] = -1, ["texture"] = -1 },
            ["bracelet"] = { ["item"] = -1, ["texture"] = -1 },
            ["hat"] = { ["item"] = -1, ["texture"] = 0 },
            ["bag"] = { ["item"] = 0, ["texture"] = 0 },
            ["shoes"] = { ["item"] = 1, ["texture"] = 1 },
            ["tshirt"] = { ["item"] = 15, ["texture"] = 0 },
            ["accessory"] = { ["item"] = 0, ["texture"] = 0 },
        }
    }
}
Sobreposições de Cabelo
cfg.HairOverlays = {
    ["Male"] = {
        [0] = { collection = "mpbeach_overlays", overlay = "FM_Hair_Fuzz" },
        [1] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_001" },
        [2] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_002" },
        [3] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_003" },
        [4] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_004" },
        [5] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_005" },
        [6] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_006" },
        [7] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_007" },
        [8] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_008" },
        [9] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_009" },
        [10] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_013" },
        [11] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_002" },
        [12] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_011" },
        [13] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_012" },
        [14] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_014" },
        [15] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_015" },
        [16] = { collection = "multiplayer_overlays", overlay = "NGBea_M_Hair_000" },
        [17] = { collection = "multiplayer_overlays", overlay = "NGBea_M_Hair_001" },
        [18] = { collection = "multiplayer_overlays", overlay = "NGBus_M_Hair_000" },
        [19] = { collection = "multiplayer_overlays", overlay = "NGBus_M_Hair_001" },
        [20] = { collection = "multiplayer_overlays", overlay = "NGHip_M_Hair_000" },
        [21] = { collection = "multiplayer_overlays", overlay = "NGHip_M_Hair_001" },
        [22] = { collection = "multiplayer_overlays", overlay = "NGInd_M_Hair_000" },
        [24] = { collection = "mplowrider_overlays", overlay = "LR_M_Hair_000" },
        [25] = { collection = "mplowrider_overlays", overlay = "LR_M_Hair_001" },
        [26] = { collection = "mplowrider_overlays", overlay = "LR_M_Hair_002" },
        [27] = { collection = "mplowrider_overlays", overlay = "LR_M_Hair_003" },
        [28] = { collection = "mplowrider2_overlays", overlay = "LR_M_Hair_004" },
        [29] = { collection = "mplowrider2_overlays", overlay = "LR_M_Hair_005" },
        [30] = { collection = "mplowrider2_overlays", overlay = "LR_M_Hair_006" },
        [31] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_000_M" },
        [32] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_001_M" },
        [33] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_002_M" },
        [34] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_003_M" },
        [35] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_004_M" },
        [36] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_005_M" },
        [37] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_001" },
        [38] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_002" },
        [39] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_003" },
        [40] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_004" },
        [41] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_005" },
        [42] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_006" },
        [43] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_007" },
        [44] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_008" },
        [45] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_009" },
        [46] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_013" },
        [47] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_002" },
        [48] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_011" },
        [49] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_012" },
        [50] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_014" },
        [51] = { collection = "multiplayer_overlays", overlay = "NG_M_Hair_015" },
        [52] = { collection = "multiplayer_overlays", overlay = "NGBea_M_Hair_000" },
        [53] = { collection = "multiplayer_overlays", overlay = "NGBea_M_Hair_001" },
        [54] = { collection = "multiplayer_overlays", overlay = "NGBus_M_Hair_000" },
        [55] = { collection = "multiplayer_overlays", overlay = "NGBus_M_Hair_001" },
        [56] = { collection = "multiplayer_overlays", overlay = "NGHip_M_Hair_000" },
        [57] = { collection = "multiplayer_overlays", overlay = "NGHip_M_Hair_001" },
        [58] = { collection = "multiplayer_overlays", overlay = "NGInd_M_Hair_000" },
        [59] = { collection = "mplowrider_overlays", overlay = "LR_M_Hair_000" },
        [60] = { collection = "mplowrider_overlays", overlay = "LR_M_Hair_001" },
        [61] = { collection = "mplowrider_overlays", overlay = "LR_M_Hair_002" },
        [62] = { collection = "mplowrider_overlays", overlay = "LR_M_Hair_003" },
        [63] = { collection = "mplowrider2_overlays", overlay = "LR_M_Hair_004" },
        [64] = { collection = "mplowrider2_overlays", overlay = "LR_M_Hair_005" },
        [65] = { collection = "mplowrider2_overlays", overlay = "LR_M_Hair_006" },
        [66] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_000_M" },
        [67] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_001_M" },
        [68] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_002_M" },
        [69] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_003_M" },
        [70] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_004_M" },
        [71] = { collection = "mpbiker_overlays", overlay = "MP_Biker_Hair_005_M" },
        [72] = { collection = "mpgunrunning_overlays", overlay = "MP_Gunrunning_Hair_M_000_M"},
        [73] = { collection = "mpgunrunning_overlays", overlay = "MP_Gunrunning_Hair_M_001_M"},
    },
    ["Female"] = {
        [0] = { collection= "mpbeach_overlays", overlay = "FM_Hair_Fuzz" },
        [1] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_001" },
        [2] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_002" },
        [3] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_003" },
        [4] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_004" },
        [5] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_005" },
        [6] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_006" },
        [7] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_007" },
        [8] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_008" },
        [9] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_009" },
        [10] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_010" },
        [11] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_011" },
        [12] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_012" },
        [13] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_013" },
        [14] = { collection= "multiplayer_overlays", overlay = "NG_M_Hair_014" },
        [15] = { collection= "multiplayer_overlays", overlay = "NG_M_Hair_015" },
        [16] = { collection= "multiplayer_overlays", overlay = "NGBea_F_Hair_000" },
        [17] = { collection= "multiplayer_overlays", overlay = "NGBea_F_Hair_001" },
        [18] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_007" },
        [19] = { collection= "multiplayer_overlays", overlay = "NGBus_F_Hair_000" },
        [20] = { collection= "multiplayer_overlays", overlay = "NGBus_F_Hair_001" },
        [21] = { collection= "multiplayer_overlays", overlay = "NGBea_F_Hair_001" },
        [22] = { collection= "multiplayer_overlays", overlay = "NGHip_F_Hair_000" },
        [23] = { collection= "multiplayer_overlays", overlay = "NGInd_F_Hair_000" },
        [25] = { collection= "mplowrider_overlays", overlay = "LR_F_Hair_000" },
        [26] = { collection= "mplowrider_overlays", overlay = "LR_F_Hair_001" },
        [27] = { collection= "mplowrider_overlays", overlay = "LR_F_Hair_002" },
        [28] = { collection= "mplowrider2_overlays", overlay = "LR_F_Hair_003" },
        [29] = { collection= "mplowrider2_overlays", overlay = "LR_F_Hair_003" },
        [30] = { collection= "mplowrider2_overlays", overlay = "LR_F_Hair_004" },
        [31] = { collection= "mplowrider2_overlays", overlay = "LR_F_Hair_006" },
        [32] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_000_F" },
        [33] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_001_F" },
        [34] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_002_F" },
        [35] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_003_F" },
        [36] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_003" },
        [37] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_006_F" },
        [38] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_004_F" },
        [39] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_001" },
        [40] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_002" },
        [41] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_003" },
        [42] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_004" },
        [43] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_005" },
        [44] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_006" },
        [45] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_007" },
        [46] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_008" },
        [47] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_009" },
        [48] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_010" },
        [49] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_011" },
        [50] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_012" },
        [51] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_013" },
        [52] = { collection= "multiplayer_overlays", overlay = "NG_M_Hair_014" },
        [53] = { collection= "multiplayer_overlays", overlay = "NG_M_Hair_015" },
        [54] = { collection= "multiplayer_overlays", overlay = "NGBea_F_Hair_000" },
        [55] = { collection= "multiplayer_overlays", overlay = "NGBea_F_Hair_001" },
        [56] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_007" },
        [57] = { collection= "multiplayer_overlays", overlay = "NGBus_F_Hair_000" },
        [58] = { collection= "multiplayer_overlays", overlay = "NGBus_F_Hair_001" },
        [59] = { collection= "multiplayer_overlays", overlay = "NGBea_F_Hair_001" },
        [60] = { collection= "multiplayer_overlays", overlay = "NGHip_F_Hair_000" },
        [61] = { collection= "multiplayer_overlays", overlay = "NGInd_F_Hair_000" },
        [62] = { collection= "mplowrider_overlays", overlay = "LR_F_Hair_000" },
        [63] = { collection= "mplowrider_overlays", overlay = "LR_F_Hair_001" },
        [64] = { collection= "mplowrider_overlays", overlay = "LR_F_Hair_002" },
        [65] = { collection= "mplowrider2_overlays", overlay = "LR_F_Hair_003" },
        [66] = { collection= "mplowrider2_overlays", overlay = "LR_F_Hair_003" },
        [67] = { collection= "mplowrider2_overlays", overlay = "LR_F_Hair_004" },
        [68] = { collection= "mplowrider2_overlays", overlay = "LR_F_Hair_006" },
        [69] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_000_F" },
        [70] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_001_F" },
        [71] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_002_F" },
        [72] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_003_F" },
        [73] = { collection= "multiplayer_overlays", overlay = "NG_F_Hair_003" },
        [74] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_006_F" },
        [75] = { collection= "mpbiker_overlays", overlay = "MP_Biker_Hair_004_F" },
        [76] = { collection= "mpgunrunning_overlays", overlay = "MP_Gunrunning_Hair_F_000_F"},
        [77] = { collection= "mpgunrunning_overlays", overlay = "MP_Gunrunning_Hair_F_001_F"}
    }
}

Barbearia

Coordenadas e Opções

eyesBarber boolean

Aqui você pode ativar a aba de olhos dentro da barbearia.


locates array

Insira as coordenadas de onde a Loja de Roupas irá aparecer.


globalconfigs.lua
cfg.barber = {
    ["eyesBarber"] = true,
    ["locates"] = {
        { 138.13,-1706.46,29.3 },
        { -1280.92,-1117.07,7.0 },
        { 1930.54,3732.06,32.85 },
        { 1214.2,-473.18,66.21 },
        { -33.61,-154.52,57.08 },
        { -276.65,6226.76,31.7 },
        { -817.46,-185.05,37.56 }
    },
    ["blipInfos"] = {
        ["distance"] = 15.0,
        ["marker"] = function(coords)
            DrawMarker(9,coords.x,coords.y,coords.z,vec3(0.0,0.0,0.0),vec3(90.0,0.0,0.0),1.0,1.0,1.0,255, 255,255,100,false,false,false,true,"icon_autentic","autentic_barbershop")
            DrawMarker(27,coords.x,coords.y,coords.z-0.97,0,0,0,0,0,0,1.0,1.0,0.5, 254, 186, 0,155, 0,0,0,1)
        end
    }
}

Seleção de Personagem

Configurações

centerCoords array

Indica a localização onde o personagem principal será spawnado na seleção de personagem.


entityCoords array

Indica a localização onde a entidade será spawnada para fazer o carregamento da área.


iplSelect string ou false

O script aguardará o carregamento do interior específico para sair da tela de espera na seleção de personagem. O valor a ser usado é o IPL do interior desejado, se for false o script não considera essa etapa.


iplCreate string ou false

O script aguardará o carregamento do interior específico para sair da tela de espera ao criar um personagem. O valor a ser usado é o IPL do interior desejado, se for false o script não considera essa etapa.


Template cópia das outras configurações

globalconfigs.lua
cfg.centerCoords = { 250.23,-412.09,28.05,181.43 }
cfg.entityCoords = { 273.24,-414.85,45.25 }
cfg.iplCreate = "criacao_de_personagem"
cfg.iplSelect = "selecao_de_personagem"
Lista de animações
globalconfigs.lua
cfg.randomAnims = {
    {"anim@amb@casino@out_of_money@ped_male@01b@base","base"},
    {"rcmpaparazzo_3big_1","_action_guard_a"}, 
    {"anim@miss@low@fin@lamar@","idle"},
    {"clothingtie","try_tie_positive_b"},
    {"clothingtie","outro"},
    {"amb@world_human_muscle_flex@arms_at_side@idle_a","idle_a"}, 
    {"oddjobs@assassinate@guard","unarmed_fold_arms"},
    {"oddjobs@assassinate@vice@hooker","argue_a"},
    {"timetable@gardener@smoking_joint","idle_cough"},
    {"amb@code_human_police_investigate@idle_b","idle_f"},
    {"amb@code_human_police_investigate@idle_b","idle_e"},
    {"amb@world_human_guard_patrol@male@idle_b","idle_e"},
    {"random@mugging5","001445_01_gangintimidation_1_female_idle_b"},
    {"anim@mp_player_intcelebrationfemale@knuckle_crunch","knuckle_crunch"},
    {"random@shop_tattoo","_idle_a"},
    {"mp_deathmatch_intros@melee@2h","intro_male_melee_2h_b"},
    {"mp_deathmatch_intros@melee@1h","intro_male_melee_1h_c"},
    {"anim@deathmatch_intros@unarmed","intro_male_unarmed_d"},
    {"anim@deathmatch_intros@unarmed","intro_male_unarmed_a"},
    {"oddjobs@basejump@","ped_d_loop"}, 
    {"friends@fra@ig_1","base_idle"}, 
    {"misscarsteal4@aliens","rehearsal_base_idle_director"}, 
    {"anim@amb@casino@out_of_money@ped_male@01b@base","base"},  
    {"anim@mp_player_intcelebrationfemale@stinker","stinker"},
    {"anim@mp_fm_event@intro","beast_transform"},
    {"anim@amb@casino@valet_scenario@pose_d@","base_a_m_y_vinewood_01"}, 
    {"anim@amb@casino@shop@ped_female@01a@base","base"}, 
    {"anim@amb@casino@valet_scenario@pose_c@","shuffle_feet_a_m_y_vinewood_01"},  
    {"anim@amb@casino@hangout@ped_male@stand@03a@idles_convo","idle_a"}, 
    {"amb@world_human_cop_idles@female@idle_b","idle_e"}, 
    {"anim@amb@casino@hangout@ped_male@stand@02b@idles","idle_a"}, 
    {"amb@world_human_hang_out_street@male_c@idle_a","idle_b"},  
    {"random@street_race","_car_b_lookout"}, 
    {"random@shop_gunstore","_idle"}, 
    {"anim@mp_player_intselfiedock","idle_a"}, 
    {"anim@mp_player_intincaryou_locobodhi@ds@","idle_a"}, 
    {"anim@mp_player_intcelebrationmale@finger_kiss","finger_kiss"},
    {"rcmbarry","base"},
    {"random@hitch_lift","idle_f"},
    {"rcmcollect_paperleadinout@","meditiate_idle"},
    {"timetable@amanda@ig_4","ig_4_base"},
    {"mp_fm_intro_cut","base_loop"},
    {"missminuteman_1ig_2","tasered_2"},
    {"misscommon@response","bring_it_on"},
    {"anim@deathmatch_intros@unarmed","intro_male_unarmed_e"},
    {"mini@triathlon","idle_e"},
    {"anim@deathmatch_intros@unarmed","intro_male_unarmed_c"},
    {"mini@triathlon","idle_f"},
    {"mini@triathlon","idle_d"},
    {"rcmfanatic1maryann_stretchidle_b","idle_e"},
    {"timetable@reunited@ig_2","jimmy_getknocked"},
    {"mp_player_int_upperpeace_sign","mp_player_int_peace_sign"}, 
    {"anim@mp_player_intupperpeace","idle_a"},
    {"anim@mp_player_intupperslow_clap","idle_a"},
}

Seleção de Spawn

Coordenadas e Informações
globalconfigs.lua
cfg.spawn = {
    ["locates"] = {
        { -2205.92,-370.48,13.29,"Great O Highway","Praia","https://cdn.discordapp.com/attachments/959340244833021952/1021913657346633810/Great_Ocean_Highway.png" },
        { -250.35,6209.71,31.49,"Duluoz Avenue","Paleto Bay","https://cdn.discordapp.com/attachments/959340244833021952/1021913657740894329/Duluoz_Avenue.png" },
        { 1694.37,4794.66,41.92,"Grapedseed Avenue","Grapeseed","https://cdn.discordapp.com/attachments/959340244833021952/1021913658143543406/Grapedseed_Avenue.png" },
        { 1858.94,3741.78,33.09,"Armadillo Avenue","Sandy Shores","https://cdn.discordapp.com/attachments/959340244833021952/1021913658525229136/Armadillo_Avenue.png" },
        { 328.0,2617.89,44.48,"Senora Road","Rota 68","https://cdn.discordapp.com/attachments/959340244833021952/1021913659091456151/Senora_Road.png" },
        { 308.33,-232.25,54.07,"Hawick Avenue","Motelzinho","https://cdn.discordapp.com/attachments/959340244833021952/1021913659477344296/Hawick_Avenue.png" },
        { 449.71,-659.27,28.48,"Integrity Way","Rodoviária","https://cdn.discordapp.com/attachments/959340244833021952/1021913656931385364/Integrity_Way.png" }
    },
    ["images"] = {
        ["homes"] = "https://cdn.discordapp.com/attachments/673773756585345034/1196545020422008923/homeslocate.png",
        ["lastLocate"] = "https://cdn.discordapp.com/attachments/673773756585345034/1196545632006066297/last_locate.png",
        ["groups"] = "https://cdn.discordapp.com/attachments/673773756585345034/1196562550754652441/groups.png"
    }
}
Adicionar mais localizações conforme o usuário

Geralmente a localização desta configuração fica dentro do sistema de residências da sua base.

AddEventHandler("vRP:playerSpawn",function(user_id,source)
    local consultAppearence = exports["oxmysql"]:executeSync("SELECT * FROM characters WHERE id = @id",{ id = user_id })
    if consultAppearence[1] then
        if consultAppearence[1]["appearence"] == 0 then
            if myHomesList[user_id] == nil then
                myHomesList[user_id] = {}

		local maxHomes = vRP.query("vRP/homesCount",{ user_id = user_id })
		if parseInt(maxHomes[1]["qtd"]) >= 1 then
		    local consult = vRP.query("vRP/homeUserAll",{ user_id = user_id })
		    for k,v in pairs(consult) do 
		        myHomesList[user_id][v["name"]] = { homesList[v["name"]][1],homesList[v["name"]][2],homesList[v["name"]][3] }
		    end
		end
	
               TriggerClientEvent("spawn:justSpawn",source,myHomesList[user_id],true)
            else
               TriggerClientEvent("spawn:justSpawn",source,{},false)
           end
        end
    end
end)

É fundamental ressaltar que a configuração mencionada nem sempre opera de forma imediata em sua estrutura; frequentemente, requer ajustes ou modificações para funcionar adequadamente.

Last updated