Setup Apartments
QIn this section, we'll guide you through the process of setting up apartments with FryDev Spawn. Apartments provide players with immersive living spaces within your FiveM server, enhancing the role-playing experience. Follow these steps to successfully configure apartments:
Step 1: Ensure Compatibility
Before proceeding, ensure that you have integrated FryDev Spawn into your server, as explained in our integration guide.
Step 2: Installing Apartment Resources
If you are using apartments, you'll need the appropriate apartment resource for your server. Install and configure either "qb-apartments" or "ps-housing" according to your preference.
Step 3: Adjusting Configuration
Open the FryDev Spawn configuration file (config.lua
) and make sure the following settings align with your apartment resource:
Config.APARTMENTS.IN_USE: Set this to
true
if you are using apartments, andfalse
if you are not.Config.APARTMENTS.SYSTEM: Choose the appropriate apartment system type:
'qb-apartments'
or'ps-housing'
.
Step 4: Customcustomize the starting apartments
Within the apartment resource you've chosen, configure the available apartment points or locations. This step varies depending on the apartment resource you're using, so refer to the respective documentation for detailed instructions.
To customize the starting apartments in your FiveM server, you can make changes to the CUSTOM.GET_QB_STARTING_APARTMENTS
function located in your server/sv_custom.lua
file at line 128. Follow these steps to update apartment details:
Open your server's
server/sv_custom.lua
file.Locate the
CUSTOM.GET_QB_STARTING_APARTMENTS
function, which is responsible for defining the starting apartments.Within the function, you will find a list of apartment entries, each represented as a table. Here's an example
Ensure that you only make changes to these parameters and leave the rest of the code unchanged to maintain compatibility with qb-apartments
and ps-housing
.
Customize the apartment details as follows:
label: Change this to the desired name or label for the apartment.
image: Replace the image URL with the image you want to use for the apartment.
coords: Adjust the coordinates to specify the location of the apartment.
description: Modify the description to provide information about the apartment.
Save your changes to the
server/sv_custom.lua
file.
Install: QB-Apartments Integration
To implement fry_spawn with qb-apartments please change the following
Got to qb-apartments -> client -> main.lua Line Number: 576
Into this:
Install: PS-Housing Integration
To implement fry_spawn with qb-apartments please change the following
Got to ps-housing -> client -> client.lua Line Number: 52
Into:
Last updated
Was this helpful?