[RELEASE][ESX] KASHacters Multi Character

Lastpos wasn’t. I will try it tomorrow thank you

Not sure if this is still supported but when I load into the server my “job” doesnt work and needs to be reset I add in the column for “job” and it didnt work same issue. I then added in “job” and “job_grade” into the server/main.lua and then it wouldnt show the character selection menu. Any Ideas? @KASH

Not sure if this is still supported but when I load into the server my “job” doesnt work and needs to be reset I add in the column for “job” and it didnt work same issue. I then added in “job” and “job_grade” into the server/main.lua and then it wouldnt show the character selection menu. Any Ideas?

Remember to change the MechanicJob and a few other ESX resources that use:

AddEventHandler('playerSpawned', function(spawn)
    isDead = false

to

AddEventHandler('esx_ambulancejob:multicharacter', function(spawn)
	IsDead = false

I try a new install but i spawn on the dafult spawnpos under the map

i been here before. in your situation but i forgot how i actually fix it. It kinda related with the lastpos not able to be saved in the database.

we dont need the lastpos, but it’s nice to have.
But the actually problem ist the spawn under the map

you can just remove the lastpos in the client and server then. if i remember correctly the server one have save pos.

cmain.lua (3.3 KB) smain.lua (3.9 KB)

in this files? and where? i can’t find

cmain is the main.lua in the client
and smain for server

my bad it only called the spawn pos. not save it.

i need to delete spawn pos?

EDIT: i dont know what you meen. can you please do it for me:roll_eyes:

no don’t. that is where your character will be put at in the map when they loaded in the map. i actually have no clue how to help you out. Try check the readme in the github and follow the instructions.

i installed the scripts 3 times with the readme and it’s everytime the same thing with the spawn

to show whats the error there is a video

After switching to OneSync I am getting an error that says "an error happens when executing a callback from the query: and then my user_inventory

Here is a screenshot, anyone having a fix?Screenshot_482

Heyo. I am getting this error for only one of my friends. It works fine for me and everyone else who joins.
He joins and is left in the sky without the character selection options and when I look in the console I see this…
[ERROR] [MySQL] [esx_kashacters] An error happens on MySQL for query "[object Object]": ER_DUP_ENTRY: Duplicate entry 'Char1:110000117011ccf-property' for key 'unique_datastore_owner_name'

I should add that it was working perfect not too long ago, but that friend stopped joining the server for a few weeks and upon joining to help me test something today he got this. I’ve tried clearing the cache and completely removing his SteamID from the database.

Edit: I ended up having to completely delete the steam ID from every table in the database to get it working for him. Kinda whomps. If anyone knows what causes this please do hit a brother up.

I need some help with the character options showing up. When I join the server it just shows a picture of the city. I have already done my tables correctly, I renamed it right, and I commented the the thread in essential mode. I don’t know what else to do.
https://gyazo.com/62dee8dba7a923419ca504a69962471a
https://gyazo.com/6cce542b927fdfc304aadd6623c113a5

hey all getting this error
[ERROR] [MySQL] An error happens on MySQL for query “UPDATE users SET identifier = ‘Char1:110000109bd3f1a’ WHERE identifier = ‘steam:110000109bd3f1a’ {=}”: Duplicate entry ‘Char1:110000109bd3f1a’ for key ‘PRIMARY’

anyone know why? and thank-you

2 Likes

Does anyone know why, this is causing player position not to update? all players are spawning at {“x”:0.0,“y”:0.0,“z”:0.0}

1 Like

Your issue is the same as mine, for what ever reason the script isn’t update the SQL to update last position it defaults to {“x”:0.0,“y”:0.0,“z”:0.0}

3 Likes