[RELEASE][ESX] KASHacters Multi Character

I can second this. It just doesn’t work on the new version of ESX

why wouldnt it work? for me it works fine. maybe i am missing something though

I can get past the character selection, however my default ped does not spawn and i’m prompted with:
image

Any idea as to why this might be? Kashacters is triggering it from server/main.lua line 40. It doesn’t seem to like it for some reason?

Your probs running an old esx framework file

i have mine running on the latest esx, it does work its just a pain.

when i make a character its work fine but when i restart and go in to the character i stay in the clouds and it popout this error SCRIPT ERROR: citizen:/scripting/lua/json.lua:397: bad argument #1 to ‘strfind’ (string expected, got nil)

handler (@esx_kashacters/server/main.lua:40)
please tell me if you now

hey there… im having some issues with the script… im not getting any errors or anything, and i get the ‘character’ selection boxes, and can click on ‘create character’, but when i go into the city, im one of the default characters. There is no ‘register’ available. I can do /register, but any characters made do not save and essentially have to be re made each time. Ive gone over the instructions a million times and i must be missing something, but i have tried this original script, friendly’s version of it, and ebensantuy’s version. At times i dont even get the character selection boxes depending on which script im using. between each try, i re install the scripts i had to change to make it work.
Between all of them ive done (and undone, and done again) different steps, but its still not working.
So in total what ive done is changed the part of essentialmode to fix ambulancejob issue, changed es_extended menu interactions, did the database querys (for identifier and owner) and wrote them into the kashacters server.lua, added to the bottom of the esx_datastore the
“AddEventHandler(‘esx:playerLoaded’, function(source)”, downloaded a newer version of ambulancejob. But i still cant get it to work lol… with no errors anywhere its hard to figure out whats wrong. i even stopped all scripts except the main ones and it still didnt work properly lol… so im at a loss of what the issue is. Any ideas would be greatly appreciated :smiley:

Will it work on the latest version of es_extended (the one you don’t need essentialmode, esplugin_mysql and es_admin2)

I just went back to the old version of EssentialMode and going to wait until a fix for this is out there

ive tried to get it working today so nope i dont think so not yet anyway i might be wrong but i havent mannaged it

me aswell if you find a fix please let me know ill do the same if i get it going

Watch this it shows you how to add esx_kashacters and get it working https://www.youtube.com/watch?v=m2k6FeHHTRQ

anyone have an issue with all the characters sharing the same wardrobe, with esx_properties and the eden clothes shop? The inventory inside the houses are shared accross the characters on the same account.

Let me know if you find the answer, I’m hunting down a resolution as well.

dosent work for the new version of ESX thats the problem most people are having

Someone created to work for newest esx??

Here’s an update, Managed to get something running and it looks like it’s working, I’m using the previously stated: https://github.com/fivem-ex/esx_kashacter I had followed all the instructions but also took it a step further, I edited all the identifier/owner columns to be VARCHAR (60) so there is plenty of room, unless you guys are pumping millions of rows from the DB you can actually just make it VARCHAR(255).

Please Note: I have not thoroughly tested compatibility but after my brief 15mins of playng (after testing character creation 3-4 times) everything seems fine. I have not tested death etc.

1 Like

People use these scripts to make a server why would you not pump it with milltions of rows from the db

what identity u use?

Most servers will not be impacted by 40/48->255 Varchar length, In the standard row formats for InnoDB and MyISAM (dynamic/compact) a VARCHAR(50) and a VARCHAR(255) will store the string text in the same way.

But this advice doesn’t spread across database engines, Would probably be better to go with either a Varchar 60 or Varchar 100. Smallest Varchar the better but you need to account for data length.

I opted for 60 since one of my tables was using that length I decided to follow suite with all my owner/identifier columns.

Final Edit to this comment; Millions of rows mean millions of rows per table meaning you have over a million characters (users/players), I doubt any FiveM server would be getting more than ~25k players a year, If they did, they should probably either look at not using ESX and invest in creating a fully optimized framework.