[RELEASE][ESX] KASHacters Multi Character

esx
characters

#245

Yes SQL uploaded to add the “user_lastcharacter” table.

Everything works flawlessly except the hitting play before selecting a char box.


#246

but as i see my policejob etc dont have problem that weird can you try put start kashcharacter in your server.cfg at the much possible? first than fivem resources just first


#247

same problem


#248

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?


#249

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


#250

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


#251

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


#252

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


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

Paste that somewhere in client/main.lua


#254

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


#255

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)


#256

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 rconlog
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 --------######


#257

it works, just dont understand this error;

https://gyazo.com/12de5e3de6b25a341aab801d4759a24e


#259

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?


#260

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


#261

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.


#262

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 !!


#263

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’


#264

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.


#265

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