Respawn at Hospital after Death

Hello all,

I already check around five topics but at every topic i found different information which is old or not usable.
So, my question is, how to make or which file i sould edit to make the respawn after death on specific location?
Settings at my config file or ambulancejob:

Config.RespawnPoint = { coords = vector3(358.69, -591.13, 42.32), heading = 61.45 }

Settings at map.lua at fivem-map-hipster and fivem-map-skater:

spawnpoint 'a_m_y_skater_01' { x = -268.927, y = -957.638, z = 31.223 }
spawnpoint 'a_m_y_skater_02' { x = -268.927, y = -957.638, z = 31.223 }

Part of my server.cfg

# Vanilla
start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start ■■■■■■■

# Essentialmode
start essentialmode
start es_ui
start es_admin2
start mysql-async
start esplugin_mysql
start EasyAdmin
start EasyAdmin-MySQL

# ESX
start async
start es_extended
start instance
start esx_ambulancejob

I will await for any suggestions, how to fix it.

Thank you in advance.

Best Regards,

1 Like

You need to put at the ambulance config like here the spawn point coords: Config.RespawnPoint = { coords = vector3(358.69, -591.13, 42.32), heading = 61.45 }

But, I already got it???

Settings at my config file or ambulancejob:

Config.RespawnPoint = { coords = vector3(358.69, -591.13, 42.32), heading = 61.45 }

You probably have auto respawning enabled in spawnmanager still, make sure you don’t have another resource that’s doing that.

Or just have this line in a client script:

exports.spawnmanager:setAutoSpawn(false)

This is from my ambulancejob

	if firstSpawn then
		exports.spawnmanager:setAutoSpawn(false) -- disable respawn
		firstSpawn = false

At spawnmanager file i do not found nothing. Here is https://pastebin.com/HuWLAWht

So, there is still no suggest how to fix this problem?

Fixed!
Edit client/main.lua /respawn script was broken/

wdym, can you give deeper information what was broken

I’m guessing you meant to reply to @vbivolarski ?

What is the fix?