[RELEASE][ESX] KASHacters Multi Character

Cracking up all the people saying this has bugs…Ive been running since the release with virtually no issues. Thanks again for this! All 3 of the cities and my community appreciate it.

1 Like

Well, even tho we put datastore_data in server.lua … people lose their clothing, mask etc are shared between character.
Tattoos keep disapearing

and I get this error in my console since I use this scripts :
https://forum-cfx-re.akamaized.net/original/3X/c/b/cb1dc1f635453730f0201e8636c825f8336484f2.png

	{table = "users", column = "identifier"},
	{table = "owned_vehicles", column = "owner"},
	{table = "user_accounts", column = "identifier"},
	{table = "addon_account_data", column = "owner"},
	{table = "addon_inventory_items", column = "owner"},
	{table = "billing", column = "identifier"},
	{table = "characters", column = "identifier"},
	{table = "datastore_data", column = "owner"},
	{table = "jail", column = "identifier"},
	{table = "owned_aircrafts", column = "owner"},
	{table = "owned_boats", column = "owner"},
	{table = "owned_properties", column = "owner"},
	{table = "owned_vehicles_society", column = "owner"},
	{table = "pawnshop_vehicles", column = "owner"},
	{table = "phone_calls", column = "owner"},
	{table = "phone_users_contacts", column = "identifier"},
	{table = "rented_aircrafts", column = "owner"},
	{table = "rented_boats", column = "owner"},
	{table = "rented_vehicles", column = "owner"},
	{table = "society_moneywash", column = "identifier"},
	{table = "user_accounts", column = "identifier"},
	{table = "user_inventory", column = "identifier"},
	{table = "user_licenses", column = "owner"}

I am getting this error from licenses:

Error running call reference function for resource esx_license: citizen:/scripting/lua/scheduler.lua:403: Execution of native 000000007302dbcf in script host failed.
stack traceback:
	[C]: in upvalue '_in'
	citizen:/scripting/lua/natives_server.lua:186: in function 'GetPlayerIdentifier'
	@esx_license/server/main.lua:82: in function 'CheckLicense'
	@esx_license/server/main.lua:149: in upvalue 'ref'
	citizen:/scripting/lua/scheduler.lua:389: in function <citizen:/scripting/lua/scheduler.lua:388>
	[C]: in function 'xpcall'
	citizen:/scripting/lua/scheduler.lua:388: in function <citizen:/scripting/lua/scheduler.lua:387>
stack traceback:
	[C]: in function 'error'
	citizen:/scripting/lua/scheduler.lua:403: in function <citizen:/scripting/lua/scheduler.lua:372>
Error running system event handling function for resource es_extended: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
	[C]: in function 'error'
	citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow'
	citizen:/scripting/lua/MessagePack.lua:465: in field 'any'
	citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack'
	citizen:/scripting/lua/scheduler.lua:626: in field '?'
	@es_extended/server/functions.lua:33: in field 'TriggerServerCallback'
	@es_extended/server/common.lua:88: in upvalue 'handler'
	citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>
stack traceback:
	[C]: in function 'error'
	citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
	citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182>

Anyway to change the job listing to not use the DB name field and use the Label field instead. I see the code where it says the following:

+ char.firstname +' '+ char.lastname +'</h3><div class="character-info"><p class="character-info-work"><strong>Work: </strong><span>'+ **char.job** +'</span></p><p class="character-info-money"><strong>Cash: </strong><span>'+ char.money +'</span></p><p class="character-info-bank"><strong>Bank: </strong><span>'+ char.bank +'</span></p> <p class="character-info-dateofbirth"><strong>Date of birth: </strong><span>'+ char.dateofbirth +'</span></p> <p class="character-info-gender"><strong>Gender: </strong><span>'+ char.sex +'</span></p></div>').attr("data-ischar", "true");

Wondering if this can be changed to label so it will look more professional?
Here is the DB tables of jobs and the difference:

image

image

Would love for it to says Winegrower instead.

It’s not taken from there. All information is taken from the users table. So users.job, there you got your job. Just make a label inside of the .js. I’m not so good at .js but I’ve atleast made it change job labels. Send me a PM and I can send you all of my code for that part :slight_smile:

Yeah I was digging and saw that it is coming from the users table. I will send the message thanks.

Did one better fixed DB and other mod to be what I wanted so all good now

how can i change the spawn point? because everytime i join, i fall through the map. I got fivem hipster and fivem skater spawns set to LS Airport, but still, they spawn me in Legion Square when i pick my character. No matter what

Hello! i have a problem, i have no errors everything works fine but the only thing is that i spawn as a npc everytime.

Found where i can change spawn points but im falling through ground and other error where its black screen and loading all the time…

with /switch

how do you make it so it uses the different skin of your character?

1 Like

Getting the following errors after selecting any character. The correct skin still spawns, just not sure why this error pops up?

Error running call reference function for resource esx_skin: citizen:/scripting/lua/scheduler.lua:405: @esx_skin/server/main.lua:39: attempt to index a nil value (local 'xPlayer')
stack traceback:
        @esx_skin/server/main.lua:39: in upvalue 'ref'
        citizen:/scripting/lua/scheduler.lua:391: in function <citizen:/scripting/lua/scheduler.lua:390>
        [C]: in function 'xpcall'
        citizen:/scripting/lua/scheduler.lua:390: in function <citizen:/scripting/lua/scheduler.lua:389>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:405: in function <citizen:/scripting/lua/scheduler.lua:374>
Error running system event handling function for resource es_extended: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow'
        citizen:/scripting/lua/MessagePack.lua:465: in field 'any'
        citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack'
        citizen:/scripting/lua/scheduler.lua:628: in field '?'
        @es_extended/server/functions.lua:33: in field 'TriggerServerCallback'
        @es_extended/server/common.lua:63: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182>

People with multiple character loose their datastore_data, clothing, property item etc are not saved even tho its added into server.lua

It says in the code >server>main.lua

else
		TriggerClientEvent('skinchanger:loadDefaultModel', src, true, cb)
        spawn = { x = -891.59, y = -2341.84, z = -11.73 } -- DEFAULT SPAWN POSITION
    end
1 Like

yep, figured it out, thanks tho :wink:

im getting this error, loading infinite time but not spawning in.

It does help for his first question, the second one is es_extended error, go to their topic you have too many solutions @3om9z

1 Like

what is that error tho?

When you spawn at designated location from the map list instead of character’s latest position. aka “underworld” spawn.

Hello,
I am having an issue where I can make a character, but I cannot add a second profile while the boxes are available. I will be going through the files later.

It highlights the character box when the mouse is over it but it does not allow me to select and make another actual profile.
I’ve done everything in the GitHub Readme and I don’t have any server errors, it’s just that major thing.
I am assuming it has something to do with the esx_identity but I am unsure?

-------^^^^^ EDIT UPDATE
I have fixed this!
-------^^^^^

Also, is there no hot key or command to input to switch characters without having to log out and back in?