renzuzu / renzu_multicharacter

Fivem - ESX & QBCORE Multicharacters
GNU General Public License v3.0
63 stars 20 forks source link

UI bug? #16

Closed b1naryerr0r closed 1 year ago

b1naryerr0r commented 1 year ago

Hi renzu!, love your work :3 some players are having this problem image you know why?

renzuzu commented 1 year ago

sometimes when do /relog ill try to reproduce this and try to hide while relogin.

b1naryerr0r commented 1 year ago

is there a solution?, or something? :c It happens when the user enters to the server

b1naryerr0r commented 1 year ago

image I have relog in false

b1naryerr0r commented 1 year ago

I tried something, i put qb-multicharacter custom and the user can create a character, when i put again your creator it loads fine the character and shows the UI correctly. It appears to be the character creation when the user doesn't have a character created

renzuzu commented 1 year ago

thank i will try this repro.

also i have updated the server thing ..

renzuzu commented 1 year ago

i have tried your repro steps..

image

can you retry in test server and use the latest version delete all your characters to test

b1naryerr0r commented 1 year ago

I tested it but it shows like this image can you send me your config file for qbcore?, just for compare with what i edit it's correct or not

renzuzu commented 1 year ago

is there no server error? from console

renzuzu commented 1 year ago

https://github.com/renzuzu/renzu_multicharacter/commit/ea525e99002c8d1286053b185cf258975b9e9a42

i have tweak the client to prevent empty datas to slots and characters.

appreciate if you test the latest version.

and also tell me your FXversion , game build version, also important to check server console if problem still exist in latest version.

b1naryerr0r commented 1 year ago

Hi renzu!, i tested it and it shows like this image

When i press "create" gives me this error and won't happen anything image image

My FX version is FXServer-master v1.0.0.5848 linux

This is the config file

Config = {} Config.Locale = 'en' Config.framework = 'QBCORE' -- ESX or QBCORE Config.UseDefaultRegister = false -- if false you will use other registration resource ex. esx_identite, Config.RegisterHook = { event = false, call = 'esx_identity:showRegisterIdentity' -- sample esx_identity compatibility. for more compatibilty see bottom. }

-- Choose Skin Resource -- if using qbcore use qb-clothing or fivemappearance. Config.skin = 'fivemappearance' -- skinchanger , fivemappearance, qb-clothing -- skin resource

-- SPAWN resource Config.SpawnSelector = false -- enable this if you want to use spawn selector Config.SpawnSelectorExport = function(coord) -- by default it uses my spawn resource return exports.renzu_spawn:Selector({x = coord.x, y = coord.y, z = coord.z, heading = coord.w}) end -- intro Config.bgmusic = true -- play bg music on intro character select Config.IntroURL = 'https://www.youtube.com/watch?v=41cqwo504hA' -- bg music on intro Config.CameraIntro = { -- camera locations when doing intro [1] = {coord = vec3(-378.5999755859,504.25170898438,434.6608581543), rot = vec3(0.00, 0.00, 151.00)}, [2] = {coord = vec3(169.95536804199,-964.54614257813,64.203475952148), rot = vec3(360.00, 0.00, -30.00)}, [3] = {coord = vec3(-407.0290222168,1312.7703857422,390.61987304), rot = vec3(360.00, 0.00, 180.00)}, [4] = {coord = vec3(-1040.8935546875,-937.53588867188,114.1599731445), rot = vec3(360.00, 0.00, 169.00)}, [5] = {coord = vec3(907.22625732422,108.29551696777,137.6200256347), rot = vec3(320.00, 5.00, 180.00)}, } -- Allows players to delete their characters Config.CanDelete = false -- This is the default number of slots for EVERY player Config.Slots = 1 Config.commandslot = 'updatecharslots' -- /updatecharslots 7

-- Text to prepend to each character (char#:identifier) - keep it short Config.Prefix = 'char' -- DEFAULT SPAWN Config.Spawn = vector3(-1037.59,-2736.90,20.16)

-- Do not use unless you are prepared to adjust your resources to correctly reset data Config.Relog = false

Config.ESXStarterItem = { [1] = {item = 'bread', amount = 10}, [2] = {item = 'water', amount = 10}, }

Config.Animations = { ['choose'] = { [1] = {dict = 'anim@mp_player_intcelebrationfemale@blow_kiss', anim = 'blow_kiss'}, [2] = {dict = 'anim@arena@celeb@podium@no_prop@', anim = 'regal_c_1st'},

    [3] = {dict = 'anim@mp_player_intcelebrationfemale@shadow_boxing', anim = 'shadow_boxing'},

    [4] = {dict = 'mini@triathlon', anim = 'want_some_of_this'},

    [5] = {dict = 'random@street_race', anim = 'grid_girl_race_start'},

    [6] = {dict = 'amb@world_human_hang_out_street@male_c@idle_a', anim = 'idle_b'},

    [7] = {dict = 'anim@arena@celeb@flat@solo@no_props@', anim = 'flip_a_player_a'},
    [8] = {dict = 'timetable@reunited@ig_2', anim = 'jimmy_getknocked'},
    [9] = {dict = 'anim@mp_player_intcelebrationmale@karate_chops', anim = 'karate_chops'},

    [10] = {dict = 'anim@mp_player_intupperpeace', anim = 'idle_a_fp'},

},
['delete'] = {
    [1] = {dict = 'anim@mp_player_intcelebrationmale@cut_throat', anim = 'cut_throat'},
    [2] = {dict = 'gestures@m@standing@casual', anim = 'gesture_damn'},
    [3] = {dict = 'anim@mp_player_intupperface_palm', anim = 'idle_a'},
    [4] = {dict = 'anim@mp_player_intupperfinger', anim = 'idle_a_fp'},

}

}

-- skin menus -- set use to true if you want to use the skin menus -- do not set multiple trues on the same resource eg. skinchanger -- you can add more skin menu or creator events Config.SkinMenus = { ['skinchanger'] = { ['esx_skin'] = {event = 'esx_skin:openSaveableMenu', use = true}, ['VexCreator'] = {event = 'VexCreator:loadCreator', use = false}, ['cui_character'] = {event = 'cui_character:open', use = false}, ['example_resource'] = {exports = 'exports.example:Creator', event = nil, use = false}, -- example support exports }, ['fivemappearance'] = {}, -- is there any creator uses fivemappearance? i will leave this todo for now ['qb-clothing'] = { ['qb-clothing'] = { event = 'qb-clothing:client:openMenu', use = true}, }, } -- compatibility with IlleniumStudios version of fivemappearance for qbcore Config.fivemappearanceConfig = { ped = true, headBlend = true, faceFeatures = true, headOverlays = true, components = true, componentConfig = { masks = true, upperBody = true, lowerBody = true, bags = true, shoes = true, scarfAndChains = true, bodyArmor = true, shirts = true, decals = true, jackets = true }, props = true, propConfig = { hats = true, glasses = true, ear = true, watches = true, bracelets = true }, tattoos = true, enableExit = true, }

--- do not edit Config.SkinMenu = {} for resource,v in pairs(Config.SkinMenus) do if resource == Config.skin then for k,v in pairs(v) do if v.use then Config.SkinMenu[resource] = {event = v.event or false, exports = v.exports or false} end end end end

-- extra ui info ex. LocalPlayer.state:set('invehicle',true,true) -- take note this utilise state bag. so the state value should be sent by client or server manualy. Config.Status = { ['invehicle'] = '', ['isdead'] = '', ['premium'] = '', ['injail'] = '', ['iscuffed'] = '', ['incommunityservice'] = '', ['isbanned'] = '', ['inbed'] = '', ['inhouse'] = '', ['inapartment'] = '', ['inmlo'] = '', ['admin'] = '', }

renzuzu commented 1 year ago

what it shows you is correct, based on whats you set on config.

you did set Config.UseDefaultRegister, which wont use the default registerration.

and you set

Config.RegisterHook = {
event = false,
call = 'esx_identity:showRegisterIdentity' -- sample esx_identity compatibility. for more compatibilty see bottom.
}
event = false means it should use export.

call = '' -- this is the event name or exports link.

if you want to use esx_identity set the event to true.

b1naryerr0r commented 1 year ago

Hi renzu!, i tried but keeps me doing the same, I came to the conclusion that the menu has this error when the player does not have any created character, it only happens in the first creation I have FX version is FXServer-master v1.0.0.5848 linux and using QBCore

renzuzu commented 1 year ago

which issue? you posted 2 issues in this single thread.

is this about the first issue or your 2nd issue which you upload 2 picture.

if this is about first issue, i need more reproduction steps.

if this is about 2nd issue.

make sure you are really using esx_identity because in default its esx_identity event is included in the config.

renzuzu commented 1 year ago

you can pass me your discord so i can help you faster

b1naryerr0r commented 1 year ago

yes!, here you have my disc! Knox#3719 Do I have to use esx_indeity even though I don't use esx?

renzuzu commented 1 year ago

what framework do you use?