How to add furniture

If you edit this, do so at your own risk, it is long and very advanced code, do not touch it without a developer.

To add new furniture items to Quasar Housing, you will configure them in the furniture configuration in shared/furniture.lua section of your asset. This allows for customization of furniture pieces, including functionality as wardrobes, stashes, or purely decorative items. Here's a step-by-step explanation.


Basic Structure

Each furniture entry includes the following:

Value
Description

Label

Name displayed in the UI.

Image

Icon used in the UI.

Object

In-game prop model for the furniture.

Type

Determines functionality (e.g., stash or wardrobe).

Offset

Position offset for interactions.

Stash Settings (if applicable)

Maximum weight and slots for storage.


Example: Adding a Washing Machine

Below is an example of adding a washing machine with multiple variants.

['washingmachine'] = {
    label = 'Washing Machine',
    img = './assets/img/decorate/categories/rooms/bathroom/bathroom-washingmachine-blue.svg',
    navigation = 2,
    dynamic = true,
    dynamicIcon = './assets/img/decorate/categories/rooms/bathroom/bathroom-washingmachine-blue.svg',
    css = {
        width = 4.5,
        top = 7.7,
        left = 2.5,
    },
    items = {
        [1] = {
            ['img'] = './assets/img/decorate/categories/rooms/bathroom/items/washing/prop_rub_washer_01.png',
            ['object'] = 'prop_rub_washer_01',
            ['price'] = 250,
            ['label'] = 'Broken Washing Machine',
            ['description'] = 'Old and dirty washing machine, its cheap at least.',
            ['colorlabel'] = 'Gray',
            ['colors'] = {},
            type = 'stash',
            offset = {
                x = 0.0,
                y = 0.0,
                z = 0.0,
            },
            stash = {
                maxweight = 50000,
                slots = 3,
            }
        },
        [2] = {
            ['img'] = './assets/img/decorate/categories/rooms/bathroom/items/washing/prop_washer_02.png',
            ['object'] = 'prop_washer_02',
            ['price'] = 400,
            ['label'] = 'Clear Washing Machine',
            ['description'] = 'A beautiful washing machine, at a good price and completely new.',
            ['colorlabel'] = 'White',
            ['colors'] = {},
            type = 'stash',
            offset = {
                x = 0.0,
                y = 0.0,
                z = 0.0,
            },
            stash = {
                maxweight = 50000,
                slots = 3,
            }
        }
    }
}

Steps to Add a New Furniture Item

1

Choose an Object

Use a valid GTA V prop model.

2

Define Functionality

  • For storage: Use type = 'stash' with stash settings.

  • For wardrobe: Use type = 'wardrobe'.

3

Set Visuals

Include an image path and optional CSS for UI customization.

4

Add to Config

Place your new entry in the furniture configuration file.

Last updated