Quasar Store Logo

Ambulance Integration

Here’s how to make sure your ambulance system works perfectly with the backrooms system, step by step even if you’ve never touched code before.

This little piece of code lets the backrooms system check if the player is dead or alive correctly. Without it, your players might respawn in weird places or not revive properly. That’s it, you just made your ambulance system compatible!



ESX Compatibility

You need to make a tiny change so the system knows when a player is dead.

Different ESX versions use slightly different names for the death variable — some call it isDead, others IsDead (notice the capital letter).

1

Open this file:

esx_ambulancejob/client/main.lua

2

Find the line that says:

function OnPlayerDeath()

(It might have code above it)

3

Right ABOVE that line, paste one of these two options:

If your script uses isDead (lowercase):

exports('isDead', function() return isDead end)

If your script uses IsDead (uppercase):

exports('IsDead', function() return IsDead end)
4

Save the file and restart your server.





QB Compatibility

You don’t need to do anything.

If your server uses qb-ambulancejob, it already works automatically.