[RELEASE][ESX] KASHacters Multi Character

esx
characters

#288

Here you go @greybeardactual


#289

does this use /switch ? or what does it do… like how do i trigger it


#290

Put it at the bottom of the client/main.lua

and yes it uses /switch command


#291

Installed perfect. Had an issue at first, only to realize it was an issue with my DB. Otherwise works perfect! Made it have 6 slots looks clean. Thnx for the awesome release!!:ok_hand::+1::+1:


#292

Hi. I got a Problem.

After Relog i always join on the same Position nevermind where i did logout.

And i spawn under the World. Can someone gimme a Hint how to fix it ?


#293

I have the same problem, did you solve it?


#294

how to fix text that you have Play Roleplay i mean just buttons how to get them in the middle of everything


#295

Does anyone has the same problem as me ?
That when ever i join my server most of the time i get a default gta ped instead of my esx_skin character…
If anyone has or had the same problem and go tit fixed please let me know i’m stuck on this one :frowning:


#296

Don’t you see that “getLastPosition”? Look for your saving positions…


#297

I’ve got an issue with the switch characters. We’ve added this line of code here - RegisterCommand(‘switch’, function() TriggerEvent(‘kashactersC:ReloadCharacters’) end) Now whenever we do /switch is just takes us to a blank screen. Any idea why this would be happening?


#298

Put this line of code at line 114 in client/main.lua

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

And it should work, you need to have it in the right order as well. Not like this! :slight_smile:

RegisterCommand(‘switch’, function() TriggerEvent(‘kashactersC:ReloadCharacters’) end)

#299

Dont use the command. Doesent work. Only bring you back to the char select. But you will still have the same skin


#301

Use that for the command switch in the server side :

RegisterServerEvent(“kashactersS:CharacterChosen”)
AddEventHandler(‘kashactersS:CharacterChosen’, function(charid, ischar)
local src = source
local spawn = {}
SetLastCharacter(src, tonumber(charid))
SetCharToIdentifier(GetPlayerIdentifiers(src)[1], tonumber(charid))
if ischar == “true” then
spawn = GetSpawnPos(src)
TriggerClientEvent(“kashactersC:Skinchanger”, src)
else
TriggerClientEvent(‘skinchanger:loadDefaultModel’, src, true, cb)
spawn = { x = -1045.31, y = -2750.69, z = 20.36 } – DEFAULT SPAWN POSITION
end
TriggerClientEvent(“kashactersC:SpawnCharacter”, src, spawn)
end)

and this in client side :

RegisterNetEvent(‘kashactersC:Skinchanger’)
AddEventHandler(‘kashactersC:Skinchanger’, function(source)
local source_ = source
ESX.TriggerServerCallback(‘esx_skin:getPlayerSkin’, function(skin, jobSkin)
TriggerEvent(‘skinchanger:loadSkin’, skin)
end)
end)


#302

It works but I get this error when I pick the first time “Error running call reference function for resource esx_skin: citizen:/scripting/lua/scheduler.lua:351: server/main.lua:39: attempt to index a nil value (local ‘xPlayer’)”


#303

Someone have a issue with tattoo because if i have tattoo in one character all the other will have the same tattoos…


#304

doesn´t work for me…


#305

Hello, first of all thanks for the awesome script but i have a question. Everything works correctly when i creating a new character, it appears on the map after leaving the server, reconnecting and selecting the same character receives such an error. The position of the character is also written in a strange way only x: and z: had any of you a similar problem and maybe knows the solution?


#306


HELP!


#307

Then you didn’t add the table in the lua file.


#308

Any errors?