Installation
Script Download
Before starting, you must log in to the CFX portal to download the asset. You will be able to download it as many times as you want on the official CFX page. Just as you download it the first time, you will also download it multiple times in the future to get updates.
Logging in to the CFX Portal
First, log in to the official CFX portal by clicking here.
Remember, if you encounter any issues or errors when starting the asset, you can check here to see if the problem is related.
Understanding CFX Auth
Downloading Dependencies
The dependencies for this asset are mandatory, so please follow the dependency guide completely and use all required files.
When downloading a dependency, ensure the file is properly unzipped and does not include "-main" at the end of its name. If it does, please remove it.

Update artifacts and gamebuild
Updating to the latest artifacts and gamebuild is essential to avoid common server issues. Here's how to do it properly:
Update Artifacts
Completely replace your current artifacts with the latest version. Download the appropriate artifacts for your operating system from the official links:
Windows: Windows Artifacts.
Linux: Linux Artifacts.
You can see the complete guide to update your server here:
How to update my server
Server.cfg Positioning
This asset must always be started below your framework, inventory, and ambulance job scripts. Failing to maintain this order can lead to functionality issues or critical errors. To ensure proper initialization and smooth operation, it is recommended to start the entire download folder using "ensure [backrooms]" in your server.cfg, respecting the specified hierarchy.

Ambulance Modifications
For QBCore users using qb-ambulancejob, no additional modifications are necessary as it works automatically.
This system integrates with your ambulance job script to ensure proper checks when a player dies or revives in the backrooms. It temporarily handles the player's state, ensuring they return to the same location and condition they were in before entering the backrooms.
For ESX users using esx_ambulancejob, you need to verify the exact variable used in your script for the death status, as it can differ between versions. Some scripts use isDead, while others use IsDead.
To ensure compatibility:
For example:
Place this export directly above the OnPlayerDeath()
function to avoid errors. This adjustment allows the backrooms system to detect the player's death status properly, maintaining smooth integration with your server's ambulance job system.
Last updated