Uhh, that’s irrelevant to my question. (Not sure if my original question was obvious enough, I thought it was). So basically, when player dies I want player to stay on the ground, aka disable auto respawning when player dies.
I have added this client side and killed myself afterwards, still respawned instantly.
AddEventHandler('onClientMapStart', function()
Citizen.Trace("RPRevive: Disabling le autospawn.")
exports.spawnmanager:spawnPlayer() -- Ensure player spawns into server.
Citizen.Wait(2500)
exports.spawnmanager:setAutoSpawn(false)
Citizen.Trace("RPRevive: Autospawn is disabled.")
end)
Do I need to add anything else or? What am I missing?