I’ve took a gander at some of the lua files in the fivem gamemode, and I’m having some trouble with figuring out how to stop the auto respawn.
Fivem_client.lua
AddEventHandler('onClientMapStart', function()
Citizen.Trace("ocms fivem\n")
Citizen.Trace("RP: Disabling autospawn...")
exports.spawnmanager:setAutoSpawn(false)
exports.spawnmanager:spawnPlayer()
Citizen.Trace("RP: Autospawn disabled!")
SetClockTime(24, 0, 0)
PauseClock(true)
Citizen.Trace("ocms fivem end\n")
end)
yet that doesnt seem to work anymore.
2 Likes
I have been trying this as well. Looking to disable this then have paramedics use /revive command or player respawn on command if none around…
I have not found anything to get this working
1 Like
Yeah its a shame the creator of RPDeath removed his script
1 Like
I have figured it out. There is a setting in the Spawn Manager resource under the hierarchy of Server\resources[system]\spawnmanager.
[REMOVED, JUST USE THE EXPORTS API]
Here is my spawnmanager.lua, just with the necessary edits to function as the RPDeath creator had intended.
HST
May 24, 2017, 4:46am
5
You shouldn’t edit the default FiveM files. Each update will cause problems. You should disable autospawn client side in your gamemode.
I just changed two true values for force respawn to false.
2 Likes
how to stop auto respawn to make the dead player stay dead after relogin
xPCDD
May 27, 2021, 6:32am
8
If you use ESX, then in esx ambulancejob config you can do it.
1 Like
i enable the anti combat log but still the same. after relog the player respawn again with message “You have been revive by ResuscitationX…” something like that. Anyone can help? I cant provide the esx_ambulancejob and spawnmanager too if it needed
There is but one resource that turns the autospawn on and thats basic-gamemode
you just have to edit that resource
1 Like
do you know how disable the default esx deqath grey screen when it says press G for help
xPCDD
April 18, 2023, 2:13pm
12
From the config, you’re able to nearly modify everything.