Furniture Interactions
From this section you can add interactions to furnitures.
Types
Interaction
Field
Type
Description
Required
Examples
Config.FurnitureInteractions = {
{
id = "stash",
tags = {"stash"},
label = "Stash",
icon = "box",
onInteract = function(entity, furnitureId, houseId)
local stash = "housing:furniture:stash:" .. houseId .. ":" .. furnitureId
-- OPEN STASH
TriggerEvent("inventory:open", stash)
end
},
{
id = "clothing",
tags = {"clothing"},
label = "Clothes",
icon = "shirt",
accessRequired = false,
onInteract = function(entity, furnitureId, houseId)
TriggerEvent("clothing:open")
end
}
}Last updated