mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
refactor(config): Remove redundant values from being stored on server
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ if ESX.GetConfig().Multichar then
|
||||
if NetworkIsPlayerActive(PlayerId()) then
|
||||
exports.spawnmanager:setAutoSpawn(false)
|
||||
DoScreenFadeOut(0)
|
||||
while not GetResourceState('esx_menu_default') == 'started' do
|
||||
while not GetResourceState('esx_menu_default') == 'started' do
|
||||
Citizen.Wait(0)
|
||||
end
|
||||
TriggerEvent("esx_multicharacter:SetupCharacters")
|
||||
@@ -139,7 +139,7 @@ if ESX.GetConfig().Multichar then
|
||||
character = Characters[spawned]
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
RegisterNetEvent('esx_multicharacter:SetupUI')
|
||||
AddEventHandler('esx_multicharacter:SetupUI', function(data, slots)
|
||||
DoScreenFadeOut(0)
|
||||
|
||||
+116
-111
@@ -1,117 +1,122 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
|
||||
--------------------
|
||||
-- This is the default number of slots for EVERY player
|
||||
-- If you want to manage extra slots for specific players you can do it by using '/setslots' and '/remslots' commands
|
||||
Config.Slots = 4
|
||||
--------------------
|
||||
if IsDuplicityVersion() then
|
||||
-- This is the default number of slots for EVERY player
|
||||
-- If you want to manage extra slots for specific players you can do it by using '/setslots' and '/remslots' commands
|
||||
Config.Slots = 4
|
||||
--------------------
|
||||
else
|
||||
-- Sets the location for the character selection scene
|
||||
-- To set the spawn location for new characters, modify the default value in the `users` SQL table
|
||||
Config.Spawn = vector4(-113.7, 565.3, 195.2, 0)
|
||||
--------------------
|
||||
|
||||
Config.Spawn = vector4(-113.7, 565.3, 195.2, 0) -- Sets the location for character selection
|
||||
-- To set the spawn location for new characters, modify the default value in the `users` SQL table
|
||||
-- Allows players to delete their characters
|
||||
Config.CanDelete = true
|
||||
--------------------
|
||||
|
||||
Config.CanDelete = true -- Choose whether or not a user can self-delete its own characters
|
||||
-- Do not use unless you are prepared to adjust your resources to correctly reset data
|
||||
-- Information: https://github.com/thelindat/esx_multicharacter#relogging
|
||||
Config.Relog = false
|
||||
--------------------
|
||||
|
||||
--------------------
|
||||
-- Do not use unless you are prepared to adjust your resources to correctly reset data
|
||||
-- Information: https://github.com/thelindat/esx_multicharacter#relogging
|
||||
Config.Relog = false
|
||||
--------------------
|
||||
|
||||
Config.Default = {
|
||||
mom = 21,
|
||||
dad = 0,
|
||||
face_md_weight = 50,
|
||||
skin_md_weight = 50,
|
||||
nose_1 = 0,
|
||||
nose_2 = 0,
|
||||
nose_3 = 0,
|
||||
nose_4 = 0,
|
||||
nose_5 = 0,
|
||||
nose_6 = 0,
|
||||
cheeks_1 = 0,
|
||||
cheeks_2 = 0,
|
||||
cheeks_3 = 0,
|
||||
lip_thickness = 0,
|
||||
jaw_1 = 0,
|
||||
jaw_2 = 0,
|
||||
chin_1 = 0,
|
||||
chin_2 = 0,
|
||||
chin_13 = 0,
|
||||
chin_4 = 0,
|
||||
neck_thickness = 0,
|
||||
hair_1 = 0,
|
||||
hair_2 = 0,
|
||||
hair_color_1 = 0,
|
||||
hair_color_2 = 0,
|
||||
tshirt_1 = 0,
|
||||
tshirt_2 = 0,
|
||||
torso_1 = 0,
|
||||
torso_2 = 0,
|
||||
decals_1 = 0,
|
||||
decals_2 = 0,
|
||||
arms = 0,
|
||||
arms_2 = 0,
|
||||
pants_1 = 0,
|
||||
pants_2 = 0,
|
||||
shoes_1 = 0,
|
||||
shoes_2 = 0,
|
||||
mask_1 = 0,
|
||||
mask_2 = 0,
|
||||
bproof_1 = 0,
|
||||
bproof_2 = 0,
|
||||
chain_1 = 0,
|
||||
chain_2 = 0,
|
||||
helmet_1 = -1,
|
||||
helmet_2 = 0,
|
||||
glasses_1 = 0,
|
||||
glasses_2 = 0,
|
||||
watches_1 = -1,
|
||||
watches_2 = 0,
|
||||
bracelets_1 = -1,
|
||||
bracelets_2 = 0,
|
||||
bags_1 = 0,
|
||||
bags_2 = 0,
|
||||
eye_color = 0,
|
||||
eye_squint = 0,
|
||||
eyebrows_2 = 0,
|
||||
eyebrows_1 = 0,
|
||||
eyebrows_3 = 0,
|
||||
eyebrows_4 = 0,
|
||||
eyebrows_5 = 0,
|
||||
eyebrows_6 = 0,
|
||||
makeup_1 = 0,
|
||||
makeup_2 = 0,
|
||||
makeup_3 = 0,
|
||||
makeup_4 = 0,
|
||||
lipstick_1 = 0,
|
||||
lipstick_2 = 0,
|
||||
lipstick_3 = 0,
|
||||
lipstick_4 = 0,
|
||||
ears_1 = -1,
|
||||
ears_2 = 0,
|
||||
chest_1 = 0,
|
||||
chest_2 = 0,
|
||||
chest_3 = 0,
|
||||
bodyb_1 = -1,
|
||||
bodyb_2 = 0,
|
||||
bodyb_3 = -1,
|
||||
bodyb_4 = 0,
|
||||
age_1 = 0,
|
||||
age_2 = 0,
|
||||
blemishes_1 = 0,
|
||||
blemishes_2 = 0,
|
||||
blush_1 = 0,
|
||||
blush_2 = 0,
|
||||
blush_3 = 0,
|
||||
complexion_1 = 0,
|
||||
complexion_2 = 0,
|
||||
sun_1 = 0,
|
||||
sun_2 = 0,
|
||||
moles_1 = 0,
|
||||
moles_2 = 0,
|
||||
beard_1 = 0,
|
||||
beard_2 = 0,
|
||||
beard_3 = 0,
|
||||
beard_4 = 0
|
||||
}
|
||||
-- Default appearance for new characters
|
||||
Config.Default = {
|
||||
mom = 21,
|
||||
dad = 0,
|
||||
face_md_weight = 50,
|
||||
skin_md_weight = 50,
|
||||
nose_1 = 0,
|
||||
nose_2 = 0,
|
||||
nose_3 = 0,
|
||||
nose_4 = 0,
|
||||
nose_5 = 0,
|
||||
nose_6 = 0,
|
||||
cheeks_1 = 0,
|
||||
cheeks_2 = 0,
|
||||
cheeks_3 = 0,
|
||||
lip_thickness = 0,
|
||||
jaw_1 = 0,
|
||||
jaw_2 = 0,
|
||||
chin_1 = 0,
|
||||
chin_2 = 0,
|
||||
chin_13 = 0,
|
||||
chin_4 = 0,
|
||||
neck_thickness = 0,
|
||||
hair_1 = 0,
|
||||
hair_2 = 0,
|
||||
hair_color_1 = 0,
|
||||
hair_color_2 = 0,
|
||||
tshirt_1 = 0,
|
||||
tshirt_2 = 0,
|
||||
torso_1 = 0,
|
||||
torso_2 = 0,
|
||||
decals_1 = 0,
|
||||
decals_2 = 0,
|
||||
arms = 0,
|
||||
arms_2 = 0,
|
||||
pants_1 = 0,
|
||||
pants_2 = 0,
|
||||
shoes_1 = 0,
|
||||
shoes_2 = 0,
|
||||
mask_1 = 0,
|
||||
mask_2 = 0,
|
||||
bproof_1 = 0,
|
||||
bproof_2 = 0,
|
||||
chain_1 = 0,
|
||||
chain_2 = 0,
|
||||
helmet_1 = -1,
|
||||
helmet_2 = 0,
|
||||
glasses_1 = 0,
|
||||
glasses_2 = 0,
|
||||
watches_1 = -1,
|
||||
watches_2 = 0,
|
||||
bracelets_1 = -1,
|
||||
bracelets_2 = 0,
|
||||
bags_1 = 0,
|
||||
bags_2 = 0,
|
||||
eye_color = 0,
|
||||
eye_squint = 0,
|
||||
eyebrows_2 = 0,
|
||||
eyebrows_1 = 0,
|
||||
eyebrows_3 = 0,
|
||||
eyebrows_4 = 0,
|
||||
eyebrows_5 = 0,
|
||||
eyebrows_6 = 0,
|
||||
makeup_1 = 0,
|
||||
makeup_2 = 0,
|
||||
makeup_3 = 0,
|
||||
makeup_4 = 0,
|
||||
lipstick_1 = 0,
|
||||
lipstick_2 = 0,
|
||||
lipstick_3 = 0,
|
||||
lipstick_4 = 0,
|
||||
ears_1 = -1,
|
||||
ears_2 = 0,
|
||||
chest_1 = 0,
|
||||
chest_2 = 0,
|
||||
chest_3 = 0,
|
||||
bodyb_1 = -1,
|
||||
bodyb_2 = 0,
|
||||
bodyb_3 = -1,
|
||||
bodyb_4 = 0,
|
||||
age_1 = 0,
|
||||
age_2 = 0,
|
||||
blemishes_1 = 0,
|
||||
blemishes_2 = 0,
|
||||
blush_1 = 0,
|
||||
blush_2 = 0,
|
||||
blush_3 = 0,
|
||||
complexion_1 = 0,
|
||||
complexion_2 = 0,
|
||||
sun_1 = 0,
|
||||
sun_2 = 0,
|
||||
moles_1 = 0,
|
||||
moles_2 = 0,
|
||||
beard_1 = 0,
|
||||
beard_2 = 0,
|
||||
beard_3 = 0,
|
||||
beard_4 = 0
|
||||
}
|
||||
end
|
||||
Reference in New Issue
Block a user