[RELEASE][ESX] KASHacters Multi Character

Found an issue. If you die and game crashes or you log out. You come back instanced no matter what. Anyone know of a fix for this?

It’s not dependent on ESX its dependent on ESSENTIALMODE. You can tweak very little to make it work for vrp etc

How can we change the spawn point? Is it the camera coords? I want to use the map spawn points.

1 Like

Anyone that has been able to change the job name to the job.label instead?

How to make /charselect command to open menu for change characters?

RegisterCommand('switch', function()
TriggerEvent('kashactersC:ReloadCharacters')
end)

Paste that somewhere in client/main.lua

1 Like

How do I present the job label instead of job name that is printed out of SQL? I can’t find the source of it

Error running call reference function for resource es_extended: citizen:/scripting/lua/scheduler.lua:403: server/main.lua:134: attempt to index a nil value (field ‘?’)
stack traceback:
server/main.lua:134: 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: 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:11
at setImmediate (mysql-async.js:5039:9)
at Object.callback (citizen:/scripting/v8/timer.js:56:6)
Error running call reference function for resource esx_phone: citizen:/scripting/lua/scheduler.lua:403: server/main.lua:19: attempt to index a nil value (field ‘?’)
stack traceback:
server/main.lua:19: 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: 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:11
at setImmediate (mysql-async.js:5039:9)
at Object.callback (citizen:/scripting/v8/timer.js:56:6)
Error running call reference function for resource esx_status: citizen:/scripting/lua/scheduler.lua:403: server/main.lua:14: attempt to index a nil value (field ‘?’)
stack traceback:
server/main.lua:14: 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: 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:11
at setImmediate (mysql-async.js:5039:9)
at Object.callback (citizen:/scripting/v8/timer.js:56:6)
Uncaught TypeError: Cannot convert undefined or null to object
mysql-async.js(5109,49): pool.query
mysql-async.js(1094,10):
mysql-async.js(1060,16):
mysql-async.js(275,24): Sequence.end
mysql-async.js(2216,8): Query._handleFinalResultPacket
mysql-async.js(2200,8): Query.EofPacket
mysql-async.js(6223,23): Protocol._parsePacket
mysql-async.js(6484,12): write
mysql-async.js(5983,16): Protocol.write
mysql-async.js(683,28):

TypeError: Cannot convert undefined or null to object
Error running call reference function for resource esx_property: citizen:/scripting/lua/scheduler.lua:403: server/main.lua:347: attempt to index a nil value (field ‘?’)
stack traceback:
server/main.lua:347: 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: 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:11
at setImmediate (mysql-async.js:5039:9)
at Object.callback (citizen:/scripting/v8/timer.js:56:6)
Error running call reference function for resource esx_skin: citizen:/scripting/lua/scheduler.lua:403: server/main.lua:49: attempt to index a nil value (local ‘user’)
stack traceback:
server/main.lua:49: 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: 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:11
at setImmediate (mysql-async.js:5039:9)
at Object.callback (citizen:/scripting/v8/timer.js:56:6)

i have done everything as stated and i get stuck in sky but on mini map i can see my pllayer move around xD weird flex but if any can help i think it may be some script blocking or conflicting

# These resources will start by default.
start mapmanager
start whitelist
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start ■■■■■■■
start scoreboard
start playernames
#inserted trough ZAP ressourcesystem
exec resources/vMenu/config/permissions.cfg
start vMenu
start mysql-async
start essentialmode
start esplugin_mysql
start es_admin2
## From ESX Pack ##
start async
start cron
start es_extended
start instance
start es_camera
start skinchanger
start esx_accessories
start esx_addonaccount
start esx_addoninventory
start esx_phone
start esx_ambulancejob
start esx_animations
start esx_atm
start esx_bankerjob
start esx_barbershop
start esx_basicneeds
start esx_billing
start esx_boat
start esx_boilerplate
start esx_clotheshop
start esx_cruisecontrol
start esx_datastore
start esx_dmvschool
start esx_drugs
start esx_garage
start esx_holdup
start esx_identity
start esx_joblisting
start esx_jobs
start esx_license
start esx_lscustom
start esx_mecanojob
start esx_menu_default
start esx_menu_dialog
start esx_menu_list
start esx_migrate
start esx_optionalneeds
start esx_policejob
start esx_property
start esx_realestateagentjob
start esx_rpchat
start esx_service
start esx_shops
start esx_sit
start esx_skin
start esx_society
start esx_status
start esx_taxijob
start esx_vehicleshop
#start esx_voice
start esx_weaponshop
## End of ESX Pack ##
start es_ui
### From Scripts ###
start elsplus
start hazards
start insurance
start MDT
start new_banking
start pausemenutitle
start towtruck
#start esx_kashacters
start VLload
start voicechat
start allcity_wallet
start cargoheli
start carhud
start Chopshop
start darkweb
start esx_aircargojob
start burglary
start Esx_Cityworks
start esx_idonlyforadmin
start esx_RealisticVehiclFailure
#DontWork#start FiveM-DriftCounter




### End of Scripts ###
 #####------Police Vehicles-------######
 start VacationPD
 #####------END OF POLICE --------######

1 Like

it works, just dont understand this error;

https://gyazo.com/12de5e3de6b25a341aab801d4759a24e

Hi i make command /charsel and this works fine because when i select the 2nd character clothes its the same like a 1st character. Can someone help me?

My players can normally join and register but i am getting this error problem

Did you found out where to put if xPlayer ? i know that it is in status/server.lua but i dont know where to put the code… And everything is working except status error in console… But script working like a charm.

I need only need spawnplayer events to make it work because people are joining without problems but every time i got error in console and server is laggin on player spawn. Thank you alot man anyways !!

Any help please!

[ERROR] [MySQL] An error happens on MySQL for query “UPDATE addon_inventory SET owner = ‘Char1:11000010780c0bb’ WHERE owner = ‘steam:11000010780c0bb’ {=}”: Unknown column ‘owner’ in ‘where clause’

Looks like youve set to look for a column owner in addon_inventory when there should be none. on the other hand addon_inventory_item has an owner column, This mean you did not properly configure your table in kashacters.

Try to clear your database and after make sure to configure your tables as XxFri3ndlyxX said :slight_smile:

1 Like

I use esx_identity currently, that is how I set up my register script, with this script how do i register new characters and switch characters? There is nothing within the readme that goes over this

GREAT SCRIPT. I can finally have multiple characters in my sevrer thaks to you bro. didnt work the first time but then i made sure i was calling all the tables and it works like a charm now. I changed it a little though. i wanted the box to stay lit when people chose the character that they chose but after they click it just goes back to clear/see thru box so they wont really know what character box they chose. all i did really was mess with the transition. But if you know w a better way so the box stay on and if they click on a dif box then that box will stay lit and the previous box goes back to clear.

Also is anyone having issues with nocliping underground when spawning? Not a huge issue but I think its causing my ACL to blink.