Last updated
Last updated
This installation guide covers both ESX and QBCore frameworks.
0r_lib (You can find it on your Keymaster.)
Map Files (You can find it script files)
qb-inventory
ox_inventory
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\server.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:
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.
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.
0Resmon Apartment Installation Document and Basic Concepts