[RELEASE][ESX] KASHacters Multi Character

(i removed the script, because it doesnt work)
But why i only have to upload the file when in the tutorial is written that i have to add the commands additional to the query


1 hour later:
Now i tried it with the Re-Design and it’s the same.
The “Background” is loading but not the menu to choose the character. .-.


What should i fill in the template for identifiers? This is my esx_identity/server/main.lua
Can you make me for copy and paste?
identity.txt (15.8 KB)

yes , Any sollution ? :frowning:

Thank you So much! You’ve saved me a ton of work

Just like maccy D’s, I’m lovin’ it.

looks sick bro

1 Like

Why do i stuck in this gaussian blur screen?

My local identifiers:
local IdentifierTables = {
{table = “characters”, column = “identifier”},
{table = “user_inventory”, column = “identifier”},
{table = “society_moneywash”, column = “identifier”},
{table = “whitelist”, column = “identifier”},
{table = “billing”, column = “identifier”},
{table = “user_parkings”, column = “identifier”},
{table = “users”, column = “identifier”},
{table = “user_accounts”, column = “identifier”},
{table = “user_contacts”, column = “identifier”},
{table = “owned_vehicles”, column = “owner”},
{table = “addon_inventory_items”, column = “owner”},
{table = “user_licenses”, column = “owner”},
{table = “rented_vehicles”, column = “owner”},
{table = “addon_account_data”, column = “owner”},
{table = “owned_properties”, column = “owner”},
{table = “datastore_data”, column = “owner”},
}

After rechange the edits for ambulance fix:

Pls help me! @Kash

nice bro,

I did this with html and css.

What about respaw options or select spawn sites, is the script “andreas spawn”?

No it’s not Andreas spawn, it’s NoPixel inspired.

Oh excuse me if I know that it is inspired by NP, I also try to do it, I really like that role they have, that’s why I made that stylo or similar on my server,

You made your own or edited an existing one, we are very good: D

Do you know what’s the problem on my server?

How do you fixed it?

ok so i keep getting people stuck at a blurry screen and it seems there characters are duping. Not sure what i have done wrong can someone please help…ERROR] [MySQL] An error happens on MySQL for query “UPDATE users SET identifier = ‘Char3:11000010f93e900’ WHERE identifier = ‘steam:11000010f93e900’ {=}”: Duplicate entry ‘Char3:11000010f93e900’ for key ‘identifier’ e[91mSCRIPT ERROR in reference call: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: indexe[0m Duplicate entry ‘Char3:11000010f93e900’ for key ‘identifier’

so this is a prob i have on the server the cloth and stored colth is shearing true the chars how can i fix that it is the same with items anny help would be help full and it dosnt gives anny error anny thing i have notice in the datastore it dosent create a new line for eatch char

in the sql is like

id name owner data

548 property steam123 the cloth id

but when i change char it is still

548 property owner char123 the cloth id

sorry for my bad english but it just swap frome owner steam123 to char123 and i cant understand why ?

I have a doubt there are 2 identifier tables or where the steam comes out: 123123123
the “user” and the Employed, the employee side where should I go? I don’t know if I let myself understand thank you very much.

Here I leave the script, and I adapted it to work correctly with the kasharacter only missing the side of the employee who does not change or recognizes the steam: 123123123

on the “employed” side the steam identifiers are stored (steam: 123123)

On which side should I put that table in the kasharacter I hope you understand me.


https://gyazo.com/ad1ba3d8d8950c58ac5480f68662d908

So also having the same issue and copied your main.lua, i now get a global ‘Createaddoninventory’ calling a nil calue

any ideas?

Can i create a KASHacter player that would autoload an NPC skin… ? i have done great things so far with KASHacter but i dont know where to look… just a hint would be appreciated, i can do the rest. thx!

In “users” table, column “skin” … can i swap a blob of {data} that could be interpreted as an NPC skin ?

so some of my players are having an issue with the mouse loading up on they screen. Everytime i use the latest version of mysql-async it causes it. So i downgrade one time and it works fine any fix for the latest version as for im using esx_police_cad and its not compatible with older versions.

u found a solution?

Hello have u done essentialmode/client/main.lua line 6-16

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)

		if NetworkIsSessionStarted() then
			TriggerServerEvent('es:firstJoinProper')
			TriggerEvent('es:allowedToSpawn')
			return
		end
	end
end)```
TO

–[[Citizen.CreateThread(function()
while true do
Citizen.Wait(0)

	if NetworkIsSessionStarted() then
		TriggerServerEvent('es:firstJoinProper')
		TriggerEvent('es:allowedToSpawn')
		return
	end
end

end)]]–```
And make sure your esx_kashacters/client/main.lua line 53 is

RegisterNetEvent('kashactersC:SpawnCharacter')
AddEventHandler('kashactersC:SpawnCharacter', function(spawn, isnew)
    TriggerServerEvent('es:firstJoinProper')
    TriggerEvent('es:allowedToSpawn')
    TriggerEvent('esx_ambulancejob:multicharacter')

    SetTimecycleModifier('default')
    local pos = spawn
    SetEntityCoords(GetPlayerPed(-1), pos.x, pos.y, pos.z)
    DoScreenFadeIn(500)
    Citizen.Wait(500)
    cam2 = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", -1355.93,-1487.78,520.75, 300.00,0.00,0.00, 100.00, false, 0)
    PointCamAtCoord(cam2, pos.x,pos.y,pos.z+200)
    SetCamActiveWithInterp(cam2, cam, 900, true, true)
    Citizen.Wait(900)
 if isnew then
    TriggerEvent('esx_identity:showRegisterIdentity')
end

This should fix your problem

1 Like

That code is syntactically incorrect, so…

big doubt

1 Like