renzuzu / renzu_multicharacter

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

ESX Bug #4

Closed FilipeCuco closed 1 year ago

FilipeCuco commented 1 year ago

in esx when I try to create a character it spams the console with this:

image

and then it goes like this: image

renzuzu commented 1 year ago

are you able to repeat this? what esx version?

make sure your multi character config in esx is true, if using legacy.

FilipeCuco commented 1 year ago

I am using the most updated one

FilipeCuco commented 1 year ago

I have to remove esx_identity and esx_multicharacter correct?

renzuzu commented 1 year ago

yes you should remove both.

tell if the issue is repeatable..

that issue means the character is not registered successfully

and this

make sure your multi character config in esx is true, if using legacy.

FilipeCuco commented 1 year ago

everything is correct and it is not working

renzuzu commented 1 year ago

try removing the print from server/framework/main.lua replace with this

LoadPlayer = function(source)
    while not GetPlayerFromId(source) do Wait(0) end
    local ply = Player(source).state
    ply:set('identifier',GetPlayerFromId(source).identifier,true)
    return true
end

and check any server error.

i use latest esx legacy too, and i just recently installed from friends a while ago, its a drag and drop. possible issue in your end. if you want this to be solved show me console server .logs

renzuzu commented 1 year ago

also tell me if its repeatable. if yes restart your server, we experience this in past, if we load a lot of tons vehicle assets before loading esx or oxmysql the esx throw an error while starting up. you could verify this if you cant login using esx_multicharacters

or you could try /relog (if resource is not restarted) and try to register again.

FilipeCuco commented 1 year ago

https://streamable.com/j0vjj4

renzuzu commented 1 year ago

i was able to replicate your issue, exactly the same .

there should be an error from server console. i dont know if your video shows the updated console. sometimes console is not updating, you have to enter or something. just a hunch.

in my case when newly install esx, no esx identiy sql it throw an error for firstname and lastname.

if you could provide more viable info. else this is not actionable as its fully working on me and my other server using esx legacy latest.

i will investigate your issue what its causing.

renzuzu commented 1 year ago

100% problem in your end, make sure you install ESX properly. as in your video there is no users. its probably a newly installed

dont forget to install esx identity SQL, and ESX skin SQL

im closing as this is not actionable and not a bug

beastinrapper commented 1 year ago

Fixed it....

Drop your users Database and add this in your sql

##############################################################

CREATE TABLE users ( identifier VARCHAR(60) NOT NULL, accounts LONGTEXT NULL DEFAULT NULL, group VARCHAR(50) NULL DEFAULT 'user', inventory LONGTEXT NULL DEFAULT NULL, job VARCHAR(20) NULL DEFAULT 'unemployed', job_grade INT NULL DEFAULT 0, loadout LONGTEXT NULL DEFAULT NULL, position VARCHAR(255) NULL DEFAULT '{"x":-269.4,"y":-955.3,"z":31.2,"heading":205.8}',

PRIMARY KEY (`identifier`)

) ENGINE=InnoDB;

##################################################################

Then add the esx_skin .sql and the @ esx_identity sql that renzu provided

beastinrapper commented 1 year ago

This is the fix for servers who have never ran multicharacter and already have user data and dont want to lose your current players user data

In front of the identifiers in the identifier tab you should be able to just add "char1:" (Without quotes, this is for character slot 1) if you're converting from another multi character script then you should already have this and may be another issue.

so all of your identifiers in your data base for each player should now look like

        char1:ec45676414165456456HI123154      ------This is not a real identifier number

Hope this helps