[RELEASE][ESX] KASHacters Multi Character

I have an issue with jsfour-atm can you tell me how can i solve it?

yeah thanks, i removed that part and its working fine now :smiley: not sure why they suggested in adding it if it doesnt work.

Does anyone know how to fix a problem that i’m having…

When i have elsplus running, I cannot move the cursor for some reason.
When i stop elsplus and i rejoin the server i can move the cursor… can anyone help me out with this.

Or does some know how to make it so that i can use the arrow key’s to select a character and press enter to play with that character, and when i press DEL to delete the charcter pls Help

Well there you goo :v:

Well they XxFri3ndlyXX didn’t make the any suggestion to make those changes where so ever.

He just posted his fixes that worked and i can only appreciate that he’s taking the time to help others :wink:

Ciaoo’

1 Like

Sorry for my ‘not friendly’ answer but i geuss you dindt followed the instructions.

If you did i would like to see an screen of resources folder with this resource on it :slight_smile:

Goodluck :crossed_fingers:

Hello I had the same problem as you, just go back to version 379 of the elsplus and the problem is fixed.

How to add second character option only for people from list?

Sorry for my nad english

Did you fix this?

I am getting this error and it’s caused by esx_ambulancejob (latest version). Everything works as it should. Just getting this error that I can’t solve… Anyone got any idea how to fix?

Then as on the correct topic.

need help ;x

Error: (node:15036) UnhandledPromiseRejectionWarning: TypeError: Cannot convert undefined or null to object
    at Function.values (<anonymous>)
    at execute.then (mysql-async.js:5002:48)
Error: (node:15036) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
Error: (node:15036) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
hitch warning: frame time of 865 milliseconds
Error running call reference function for resource esx_identity: citizen:/scripting/lua/scheduler.lua:403: @esx_identity/server/main.lua:12: attempt to index a nil value (field '?')
stack traceback:
        @esx_identity/server/main.lua:12: 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: Unhandled error in timer: Error: BUFFER_SHORTAGE
Error: BUFFER_SHORTAGE
    at n.e [as reserve] (citizen:/scripting/v8/msgpack.js:29:12766)
    at h (citizen:/scripting/v8/msgpack.js:29:15761)
    at n.r [as decode] (citizen:/scripting/v8/msgpack.js:29:13908)
    at n.fetch (citizen:/scripting/v8/msgpack.js:29:6972)
    at n.u [as read] (citizen:/scripting/v8/msgpack.js:29:12076)
    at Object.n [as decode] (citizen:/scripting/v8/msgpack.js:29:7097)
    at unpack (citizen:/scripting/v8/main.js:20:33)
    at citizen:/scripting/v8/main.js:51:20
    at setImmediate (mysql-async.js:4962:9)
    at Object.callback (citizen:/scripting/v8/timer.js:96:21)
Error running call reference function for resource es_extended: citizen:/scripting/lua/scheduler.lua:403: @es_extended/server/main.lua:135: attempt to index a nil value (field '?')
stack traceback:
        @es_extended/server/main.lua:135: 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: Unhandled error in timer: Error: BUFFER_SHORTAGE
Error: BUFFER_SHORTAGE
    at n.e [as reserve] (citizen:/scripting/v8/msgpack.js:29:12766)
    at h (citizen:/scripting/v8/msgpack.js:29:15761)
    at n.r [as decode] (citizen:/scripting/v8/msgpack.js:29:13908)
    at n.fetch (citizen:/scripting/v8/msgpack.js:29:6972)
    at n.u [as read] (citizen:/scripting/v8/msgpack.js:29:12076)
    at Object.n [as decode] (citizen:/scripting/v8/msgpack.js:29:7097)
    at unpack (citizen:/scripting/v8/main.js:20:33)
    at citizen:/scripting/v8/main.js:51:20
    at setImmediate (mysql-async.js:4962:9)
    at Object.callback (citizen:/scripting/v8/timer.js:96:21)

Well, this is the correct topic since there was nothing wrong with ambulancejob before kashacter installation.

you will need to edit all your scripts around kashacters. esx_kashacters will now be your centerpoint and there is a few scripts you NEED to edit (if you have them) to get it working flawless. i have been working with this since it got released and now after 1,5 months i think iv solved all the problems that has shown up due to esx_kashacters. you have alot of work infront of you if you got more scripts than just this. good luck

Yes i am aware of that, i got everything to work except ambulancejob and i thought that maybe someone with similar problem could help me with this

okey i understand. i dont remember if i had that error but ill check fast, brb

AddEventHandler('playerSpawned', function()
	IsDead = false

	if FirstSpawn then
		exports.spawnmanager:setAutoSpawn(false) -- disable respawn
		FirstSpawn = false

		ESX.TriggerServerCallback('esx_ambulancejob:getDeathStatus', function(isDead)
			if isDead and Config.AntiCombatLog then
				while not PlayerLoaded do
					Citizen.Wait(1000)
				end

				ESX.ShowNotification(_U('combatlog_message'))
				RemoveItemsAfterRPDeath()
			end
		end)
	end
end)

this is your error if you havent made this to a event yet. if you havent you nned to make it to a event that you trigger from esx_kashacters after you chosse one of your characters

Ye, i did make it to a event and im triggering it in kashacter. The error appears when the player joins, im not sure why…

you trigger it in esx_kashacters client?

RegisterNetEvent('esx_ambulancejob:playerSpawned')
AddEventHandler('esx_ambulancejob:playerSpawned', function()
	IsDead = false

		exports.spawnmanager:setAutoSpawn(false) -- disable respawn

		ESX.TriggerServerCallback('esx_ambulancejob:getDeathStatus', function(isDead)
			if isDead and Config.AntiCombatLog then
				ESX.ShowNotification(_U('combatlog_message'))
				RemoveItemsAfterRPDeath()
			end
		end)
end)
AddEventHandler('playerSpawned', function()
	IsDead = false

	if FirstSpawn then
		exports.spawnmanager:setAutoSpawn(false) -- disable respawn
		FirstSpawn = false

		ESX.TriggerServerCallback('esx_ambulancejob:getDeathStatus', function(isDead)
			if isDead and Config.AntiCombatLog then
				while not PlayerLoaded do
					Citizen.Wait(1000)
				end

				ESX.ShowNotification(_U('combatlog_message'))
				RemoveItemsAfterRPDeath()
			end
		end)
	end
end)```