Decorate

Welcome to decorate system

1. How to decorate

Our system of houses offers you to decorate in an intuitive and complete way, you can decorate both inside the house, and make a garden outside the same, here is an example video of how to decorate your house if you feel lost, adding that you have an informative menu in the decoration menu.

In the video you will see a section where he explains the logic of how the props are placed and how to add even more, but in the next section we will show you how to add even more props a little more explained.

2. How to add more furniture

To add more furniture to your housing system is relatively easy, or if you purchase a furniture package from our partners they already maintain a configured file ready for qs-housing, so everything will be done in this path qs-housing/client/custom/furniture/*. So if you buy an asset that already provides you with a qs-housing compatible furniture file copy and drop it in this path, but if not, create a file in the mentioned path for example furnitureaddon.lua and take as an example the following code

furniture/furnitureaddon.lua
Citizen.CreateThread(function()
    local furnitureaddon= {
	{
		["object"] = "addon_chair1", ["price"] = 700, ["label"] = "Label chair 1", ["background"] = "rgba(101, 0, 160, 0.17)",
		["group_items"] ={
				{ ["object"] = "addon_chair1", ["price"] = 700, ["label"] = "Label chair 1" },
				{ ["object"] = "addon_chair2", ["price"] = 700, ["label"] = "Label chair 2" },
				{ ["object"] = "addon_chair3", ["price"] = 700, ["label"] = "Label chair 3" },
				{ ["object"] = "addon_chair4", ["price"] = 700, ["label"] = "Label chair 4" },
			}
		}
    }
    insertFurniture(Config.FurnitureList.chairs,furnitureaddon)
end)

In order for you to understand and not make a mistake, we explain very briefly what each thing is:

object = Name of the .ydr file that comes in your furniture package
price  = It is the value of each piece of furniture separately that you add
label  = It is the name you are going to give to that piece of furniture, and with which it will appear in the menu.

3. Lock menus in decorate

Because in the middle of the decoration menu, some of the basic menus of your server were opened, we decided to add an optional export that you can add in your menu so that they do not open in the decoration menu!

To better understand this export, we must think that the exports['qs-housing']:inDecorate() refers to being in the decoration menu, so we will simply apply this check with a not exports['qs-housing']:inDecorate()

Ask your trusted developer for help if you don't feel able to make such modification!

if Config.MenuKeybindEnabled then 
    if IsControlPressed(0, Config.MenuKeybind) and not exports['qs-housing']:inDecorate() then 
        OpenEmoteMenu() 
    end 
end

Last updated