Installation

Quasar Apartments is a compact housing system for FiveM, perfect for starters or immersive living. Each unit includes stash, wardrobe, and smartphone chargers, with full support for qs-multicharacter and qb-multicharacter. Players can decorate interiors, move across the city, and even grow weed with qs-weed integration. Optimized for ESX and QBCORE, it delivers realism, comfort, and customization.


Download Script

To download the assets needed for this script, you must access the official Cfx.re portal, where all assets purchased through Tebex are managed.

  1. Go to the following link: 🔗 https://portal.cfx.re/assets/granted-assets

  2. Log in with the same Cfx.re account you used to make the purchase.

  3. In the list of granted assets, find and download the following:

  • Apartments


Download Dependencies

This script requires some mandatory dependencies to function correctly. Make sure to download and extract them inside your server’s main directory, keeping their original folder structure intact.


Remove Other Scripts

This script may cause conflicts or errors if you use other apartments systems on your server. Common examples include qb-apartments, qbx_property, or other similar apartments scripts. It’s strongly recommended to remove them completely before installation to prevent compatibility or functionality issues.


Server.cfg Placement

This script must always start after es_extended or qb-core, never before. We recommend placing it below in your server.cfg, ensuring that all its dependencies are started first to prevent errors or unexpected behavior.


Database Setup

This script includes an essential database required for its operation. You must import it before starting your server, preferably using HeidiSQL or any other manager compatible with MariaDB/MySQL.

DATABASE ESX/QBCORE
DROP TABLE IF EXISTS `player_apartments`;

CREATE TABLE `player_apartments` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`name` VARCHAR(255) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci',
	`type` VARCHAR(255) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci',
	`label` VARCHAR(255) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci',
	`citizenid` VARCHAR(255) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci',
	`stash` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci',
	`wardrobe` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci',
	`charge` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci',
	PRIMARY KEY (`id`) USING BTREE,
	UNIQUE INDEX `name` (`name`) USING BTREE,
	INDEX `citizenid` (`citizenid`) USING BTREE
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB
AUTO_INCREMENT=4148
;

DROP TABLE IF EXISTS `apartment_decorations`;

CREATE TABLE `apartment_decorations` (
	`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
	`apartmentId` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`creator` VARCHAR(70) NOT NULL DEFAULT '0' COLLATE 'utf8mb3_general_ci',
	`modelName` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'utf8mb3_general_ci',
	`coords` TEXT NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`rotation` TEXT NOT NULL DEFAULT '' COLLATE 'utf8mb3_general_ci',
	`inStash` TINYINT(1) NOT NULL DEFAULT '0',
	`created` TIMESTAMP NULL DEFAULT NULL,
	PRIMARY KEY (`id`) USING BTREE,
	INDEX `id` (`id`, `apartmentId`) USING BTREE
)
COLLATE='utf8mb3_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=7
;

First Apartment

If qs-multicharacter is not installed Quasar Apartments will not assign an initial apartment automatically.

  • To get an apartment: Use the command in chat:

  • /apartment
  • To run the command via code:

    ExecuteCommand("apartment")
  • Purpose: Allows automated apartment selection through scripts or custom triggers.