Installation
Login to your Granted Assets - CFX Portal
Download RxHousing
Download Dependencies
Dependency | Required |
---|---|
es_extended OR qb-core OR qbx_core | |
ox_lib | |
oxmysql | |
K4MB1 Shells |
Modify Database
RxHousing/[INSTALLATION]/rx_housing.sql
Head to
Open the file in HeidiSQL or phpMyAdmin
Execute the query
Ensuring Asset(s)
To make sure the asset(s) starts & works properly we need to make sure all asset(s) start in the correct order in your server.cfg. Below you can find an example of how it can look like.
[rx]
in your resource folder. If you own multiple scripts from RX, you will not need to add them all to your server.cfg seperately.# 1. Start oxmysql
ensure oxmysql
# 2. Start your framework
ensure es_extended or qb-core or qbx_core
# 3. Start ox_lib
ensure ox_lib
# 4. OPTIONAL: Start your inventory, appearance and garage script
ensure your_inventory
ensure your_appearance_script
ensure your_garage
# 5. Start your shells
ensure your_shells
# 6. Finally, start our asset singularly
ensure RxHousing
# Or, start all of our assets at once
ensure [rx]
FAQ
You can add a new shell by copying another shell in the shells.lua. You need to change the name and the offsets. The name has to be identical to the name of your shell. Once you have copied the shell, you need to spawn it in-game to get the offsets. You can use /shell:spawn
shellname to spawn the shell and copy the offset.
Config.Shells["change_me"] = { -- Change the name of the shell to the name of your shell.
offsets = {
door = vector3(1.511230, -9.875488, -0.521904), -- change the offset
doorHeading = 14.050617218018, -- change the heading
laptop = vector3(-5.873413, 1.514404, 0.247147), -- change the offset
laptopHeading = 340.99652099609, -- change the heading
stash = vector3(0.181519, 6.426270, -0.521912), -- change the offset
clothing = vector3(6.112793, 9.284424, -0.521912), -- change the offset
},
}
You can integrate your inventory, garage or appearance script in the client/opensource.lua
& server/opensource.lua
files. You can find the functions that are used in the script. If you need help with this, please open a ticket on our Discord server.