[RELEASE][ESX] KASHacters Multi Character

How to change first time spawn location, cuz it’s always in Los Santos … and in resources[esx]\esx_kashacters\server\main.lua :

“”" 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)
else
TriggerClientEvent(‘skinchanger:loadDefaultModel’, src, true, cb)
spawn = { x = 195.55, y = -933.36, z = 29.90 } – DEFAULT SPAWN POSITION
end
TriggerClientEvent(“kashactersC:SpawnCharacter”, src, spawn)
end) “”"

DEFAULT SPAWN POSITION doesnt help if I change it…

I have heard it’s to do with something with the SQL

Have you a fix?

I don’t actually, but would be great to know how to fix the issue. Do you know?

No, I’m waiting for a solution

Ok. Hope someone have a solution soon :slight_smile:

Do you have the problem that when first spawn the char spawn dead did you fix this problem?

I have no idea what this could be

Im getting an issue where charcters name is displaying and spawning in as a PED but have all my job roles and everything else?image

is there a discord i can join to talk about an issue with this ?

I have a Problem with esx_ambulancejob. When the Player dies, he respawn automatic (health is set to 100) but the Deadscreen is still displayed… So the medic cant revive the Player…

What did you do to fix? Anyone know the fix?

Same issue, any fix?

How to change first time spawn location, cuz it’s always in Los Santos … and in resources[esx]\esx_kashacters\server\main.lua :

“”" 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)
else
TriggerClientEvent(‘skinchanger:loadDefaultModel’, src, true, cb)
spawn = { x = 195.55, y = -933.36, z = 29.90 } – DEFAULT SPAWN POSITION
end
TriggerClientEvent(“kashactersC:SpawnCharacter”, src, spawn)
end) “”"

DEFAULT SPAWN POSITION doesnt help if I change it…

1 Like
old

First of all to get this working you need to comment out the NetworkIsSessionStarted() Citizen.CreateThread() in essentialmode\client\main.lua on line 6 - 16

Do I do it like this?
image

Nevermind, I got it to work… I think. Well, this is what happens even though I followed all instructions, and read the readme file:

to me… and i could be wrong… you might not have all your tables correct.

@greybeardactual So you mean I could be missing some resources?

I transferred all my important esx resources from my old server, so I don’t think I would actually be able to have my tables incorrectly set up

No.

He means the tables for the sql identifiers and owners you setup in the server lua file

1 Like

What that guy just said. You have to setup your SQL table in the resource. If you don’t nothing will work

to the guy who made this, i want to thank you for making me literally wanna jump off a bridge and throw my pc off a mountain. i’ve done everything said and everything possible to try and fix this, i am so mentally unstable from this script taking up 4 days of my time to try and fix this script, i dont i will ever be the same after restarting my server 40 times a day to try and see if im going be stuck in cloud 9, your truly - Hurt

2 Likes