Housing
Dependencies​
Optional​
Target​
Robbery​
- lockpick For robbery minigame
Inventory​
- ox_inventory
- qs-inventory
- qb-inventory
- lj-inventory
- core-inventory
- chezza
- You can add your own! (Request to me if you want yours to be added)
Wardrobe​
- esx_skin
- qb
- fivem-appearance
- Add your own its unencrypted for this function
Garages​
- cd_garage
- loaf_garage
- jg-advancedgarage
- okokGarage
- mono_garage
- mGarage
- qbx_garages
- MojiaGarages
- qb-garages
- esx_advancedgarage
- luke_garages
Installation​
- Import the SQL file of your framework to your database
- Rename the script if its not named
bcs_housing
yet. - Make sure you have the dependencies installed:
- Configure the config to your liking and framework ESX or QB
- ensure/start the script in your server cfg
ensure bcs_housing
- Generate the images for furniture, follow this guide
Don't forget to change the configs accordingly such as the config/job.lua
and change the job name
to job_name = 'realestate',
for default realestate qb job name.
Converting from V2 to V3​
If you were using v2 previuosly you can follow this steps:
- Make sure to backup your database of the houses first
- Make sure no one is inside the server
- Use the command
converthouse
in the server console / txadmin live console - Restart the housing script
Creating a house​
- Use the command
/createhome
- Fill the fields as needed
- Set the position of the entrance and optionally the garage
- Choose the shell and height placement for Shell, For MLO create the points
Adding Shells​
- First add the shell resource into your server, usually start the folder that was provided to you.
- Enable
debug
mode in theconfig/config.lua
, set it as true. - In the game, use the command
/testshell [shellname]
, e.g./testshell shell_apartment1
- After being teleported, go towards the entrance/exit of the door inside.
- Use the command
/getoffset
to get the offset of the shell. It will be kept inoffset.txt
. - Lastly, use the command
/deleteshell
to remove the temporary shell. - Go into the file
offset.txt
and copy the shell into theconfig/shells.lua
Adding IPL​
- Enable
debug
mode in theconfig/config.lua
, set it as true. - In the game, go to an existing IPL and move towards the entrance/exit.
- Use the command
/addIPL [ipl] [label of the ipl]
, this will get the coordinate and saved toipl.txt
- Copy the IPL Coordinate into the
config/ipl.lua
Troubleshooting​
Blinking / Flashing lights in the house(shells/ipl)
If you are using vSync, add this to your client code at the bottom. This is based on the popular vSync of Loaf edited version.
RegisterNetEvent('vSync:toggle')
AddEventHandler('vSync:toggle', function(bool)
weatherEnabled = not bool
end)
Error screenshot command is not appearing in the folder or uploaded properly
This may happen because you have a 4K resolution which makes the file much bigger than necessary. Try lowering your resolution for screenshot command to run.