How to add furniture
To add new furniture items to Quasar Drugs Creator, 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
Last updated