Overview
RARX Apartments is a starter housing system for FiveM servers. Players can choose an apartment on first spawn, enter instanced interiors with routing buckets, access a personal stash, change outfits, and log out from inside their apartment. The framework is auto-detected at runtime.Features
Apartment Selection
New players choose from configurable apartment locations on first spawn
Instanced Interiors
Each player gets their own interior instance using routing buckets and vertical offset stacking
Personal Stash
Built-in stash point inside the apartment with configurable slots and weight
Outfit Access
Change clothes inside the apartment with auto-detected appearance system integration
Logout Point
Log out directly from inside the apartment, returning to character selection
Target Integration
Auto-detects ox_target or qb-target for interaction points inside the apartment
Requirements
- Framework: ESX, QBCore, or QBox (auto-detected)
- ox_lib
- oxmysql
- rarx_lib
The framework is detected automatically at startup in this order:
qbx_core -> qb-core -> es_extended. No manual framework configuration is needed.Supported Inventories
The stash system auto-detects your inventory resource:- ox_inventory
- qs-inventory
- ps-inventory
- codem-inventory
- qb-inventory
Supported Clothing Systems
The outfit point auto-detects your appearance resource:- rarx_clothing
- illenium-appearance
- fivem-appearance
- bl_appearance
- qb-clothing
Installation
1
Download & Extract
Download the latest version from your Keymaster and extract it to your server’s resources folder.
2
Add to server.cfg
ox_lib, oxmysql, and rarx_lib are started before this resource.3
Configure
Edit
config.lua to customize apartment locations, stash settings, and interior offsets.4
Integration with Multicharacter
If using
rarx_multicharacter, enable apartment spawns in its config:Configuration
General Settings
Stash Settings
Interior Settings
Configure the interior model and point-of-interest offsets within the apartment:Apartment Locations
Each apartment has an entry point and an interaction zone:Custom Hooks
Thecustom/client.lua and custom/server.lua files are not escrowed and can be freely edited to integrate with your server’s systems.
Client-Side Hooks
Server-Side Hooks
Backwards Compatibility
The config automatically exposes anApartments global table for compatibility with rarx_multicharacter and other resources that expect the QB-Apartments format:
Troubleshooting
Apartment interior not loading
Apartment interior not loading
Verify the shell model files (
.ytyp) are present in the stream/ folder and that this_is_a_map 'yes' is in the fxmanifest.Stash not opening
Stash not opening
Check that your inventory resource is started. The script auto-detects ox_inventory, qs-inventory, ps-inventory, codem-inventory, or qb-inventory. You can also override stash behavior in
custom/server.lua and custom/client.lua.Players overlapping in apartments
Players overlapping in apartments
Increase
Config.SpawnOffset to add more vertical distance between stacked instances. The default is 30 units.Outfit point not working
Outfit point not working
Ensure your clothing/appearance resource is started. Supported: rarx_clothing, illenium-appearance, fivem-appearance, bl_appearance, qb-clothing.
New players not seeing apartment selection
New players not seeing apartment selection
Verify
Config.Starting = true in config.lua. If using rarx_multicharacter, also check its apartment integration settings.Target zones not appearing
Target zones not appearing
The script auto-detects ox_target or qb-target. If neither is started, it falls back to proximity-based text UI prompts.

