i’am getting this error and black screen after character selecting
help me please
Error resuming coroutine: citizen:/scripting/lua/json.lua:397: bad argument #1 to 'strfind' (string expected, got nil)
stack traceback:
[C]: in function 'string.find'
citizen:/scripting/lua/json.lua:397: in upvalue 'scanwhite'
citizen:/scripting/lua/json.lua:553: in function <citizen:/scripting/lua/json.lua:551>
(...tail calls...)
@esx_kashacters/server/main.lua:36: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>
The character screen is loading and I can see my main character, but I don’t have a mouse to move around and the “Play” and “Delete” green and red buttons aren’t on my screen. Any ideas?
Love this script! its vital now!
Would it be possible mechanically to once there is a command that goes back to the char selection menu… that switching between char would be like camera zoom out of the player to the sky over the city then going back to the new selected char by zooming into his location… like switching between micheal and trevor with the ALT key switch. If its mechanically scriptable, i dont mind doing it myself… just not sure if it will work before i start.
Love this script guys, only thing i cant get to be specific to each player is the inventory, no matter what i do in the server file to try to keep them seperated by character all characters share the same inventory. Anyone else ran into the problem and found a solution?
and when ever a player leaves the server KASHacters sends the “last location” to the sql db as x:0.0 y:0.0 z:0.0 so every time i spawn back in it is at that same location instead of where we left. PLEASE HELP. this is rather frustrating. especially since this puts each player in the city and we have an AOP of sandy and grape seed area.
So i recently instealled kashacters in my server and its all working except its impossible to play because when people start loading in with the character system the server starts to lag. When this lag happens they cant see there character selection. this is what happens when people join. https://pastebin.com/EsXD6DKy
Since I recently switched to a VPS the lag and players being stuck in charachter selection screen have been occuring frequently. I have yet to find a solution for this, I am guessing it’s something with windows becouse on linux it worked perfectly fine for me.
Ok edit... after playing round for couple hours more i am down to just these errors ... do i need to add another if xPlayer ~= nil then and if so where? as if have tried and that didn't change anything? little stuck to where to go from here? first character saves but running into this error constantly in console
Error running system event handling function for resource esx_status: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:78: attempt to index a nil value (local 'xPlayer')
stack traceback:
server/main.lua:78: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:138>
so this is my main.lua 78 error..... any ideas lads?
RegisterServerEvent('esx_status:update')
AddEventHandler('esx_status:update', function(status)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
xPlayer.set('status', status)
end)
Have you tried getting a newer version or reinstalling the plugin and it’s dependencies. Make sure you have a new version of es_extended and essentialmode. and try reinstalling esx_optionalneeds and esx_basicneeds