Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nonefivem.com/llms.txt

Use this file to discover all available pages before exploring further.

In order to use furniture interactions you need to configure interact.
You can add interactions based on furniture models or tags.

Types


Interaction

FieldTypeDescriptionRequired
idstringUnique id for the interactiontrue
labelstringInteraction label to showtrue
onInteractfunctionFunction to execute on interacttrue
tagsstring[]Furniture tagsfalse
modelsnumber[]Furniture modelsfalse
iconstringFont Awesome iconfalse
accessRequiredbooleanControls whether the player has access to the house for interact. Default: truefalse

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
    }
 }