Hi everyone. Ussing ESX V1-Final, when I reconnect, I often spawn in a random site, usually where I disconnected last time.
How could I fix it?
I checked if my ‘position’ column in the DB is properly declarated and i think yes.
Name | Type | Collation | null | Default |
position varchar(255) utf8mb4_general_ci Yes {“x”:-269.4,“y”:-955.3,“z”:31.2,“heading”:205.8}
I solved this issue just modifying /resources/[gamemodes]/basic-gamemode/basic_client.lua as this:
AddEventHandler(‘onClientMapStart’, function()
//exports.spawnmanager:setAutoSpawn(true)
exports.spawnmanager:setAutoSpawn(false)
exports.spawnmanager:forceRespawn()
end)