Installation
0Resmon Apartment Installation Document and Basic Concepts
Once you have set up the dependencies, all you have to do is upload the folder to the server.
This installation guide covers both ESX and QBCore/QBOX frameworks.
Supported Inventories
qb-inventory
ox_inventory
ESX
start es_extended
start 0r_lib
start 0r-apartment-v2
--- esx resources --QBOX
--[[ Other Scripts ]]
start 0r_lib
start 0r-apartment-v2QBOX Starter Apartment ?
Q: I want new players to choose an apartment and have a random room, what should I do?
A: First of all, you should be using qbx_spawn for this. After this you won't need qbox_apartment. However, it is your responsibility to make sure that other scripts that use it don't malfunction. The functions have been edited to replace qbx_apartments. So if you use other scripts, you should fix them according to your settings. Here is what you need to do in order:
1- 0r-apartment-v2\modules\bridge\qb\client.lua If you are already using the latest update, you do not need to !
Line 24~ apartments:client:setupSpawnUI
2- qbx_spawn\client\main.lua Line 188~ inputHandler & qb-spawn:client:setupSpawns Update:
3- qbx_core/client/charecter.lua Line~345
Find and Update like that
QBCore
QBCore QB-Apartment ?
Q: I want new players to choose an apartment and have a random room, what should I do?
A: First of all, you should be using qb-spawn and qb-multicharacter and qb-apartments for this. After this you won't need qb-apartments. However, it is your responsibility to make sure that other scripts that use it don't malfunction. The functions have been edited to replace qb-apartments. So if you use other scripts, you should fix them according to your settings. Here is what you need to do in order:
1- In qb-multicharacter: server/main.lua replace this code block:
2- In qb-spawn/fxmanifest: replace shared_scripts with the following.
3- qb-spawn/client.lua
You must change all Apartments.Locations definitions in the file to Apartments.
For example: client line 136.
4- qb-spawn/client.lua line 135 / function RegisterNUICallback('chooseAppa', function(data, cb)
Then restart your server. Everything should work properly. Please don't create a support ticket until you are sure everything is working properly.
What You Need to Know
Q: Where is the sql file ?
A: database.sql
Q: How to add a motel ?
A: You can take an example from Config.Apartments in the Config file.
Last updated