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.

1

Logging in to the CFX Portal

First, log in to the official CFX portal by clicking here.

2

Finding Your Assets

Once logged in, navigate to the Granted Assets section to access your purchased assets. You can download them by clicking the "Download" button.

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:

1

Update Artifacts

Completely replace your current artifacts with the latest version. Download the appropriate artifacts for your operating system from the official links:

2

Update Gamebuild

Using the latest gamebuild is critical to take advantage of the newest features and avoid compatibility errors.

Edit the server.cfg file and add the following line:

sv_enforceGameBuild 3258

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:

1

Identify whether your esx_ambulancejob uses isDead (lowercase) or IsDead (uppercase).

2

Add the corresponding export above the OnPlayerDeath() function in esx_ambulancejob/client/main.lua.

For example:

1

If your script uses isDead, add:

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

If your script uses IsDead, add:

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

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