I’m trying to add a logout feature for my kashacters script. I have gotten to the point where it brings the user back to the character selection. But when they select their character & spawn back, it still has them as their previous character.
it is possible, with my framework i have it setup so when the player issues a command it basically unloads him from everything (acting like he disconnected from the server) then places him back into the character selection screen from there he can select a new character and the system then loads him back into the server
This guy did it but wouldn’t say how since he said his framework is custom…
Basically, I need to unload someone from my server for this to work. How would I go about doing this?
This is what I have right now:
if ESX ~= nil then
if NetworkIsSessionStarted() and ESX.IsPlayerLoaded() then
TriggerEvent('kashactersC:ReloadCharacters')
return
end
end
end)