# qb\_apartments

Thanks TNGAM1013 for snippet.

### qb-apartments

1. Go to qb-apartments and open client/main.lua
2. Go to line 559 and add your code under line 561

Comment out > --TriggerEvent('qb-clothing:client:openOutfitMenu') and add your code CreateThread(function() TriggerEvent("rcore\_clothes:openOutfits") end) under the commented out

**Should Look like this**

```lua
RegisterNetEvent('apartments:client:ChangeOutfit', function()
    TriggerServerEvent("InteractSound_SV:PlayOnSource", "Clothes1", 0.4)
    --TriggerEvent('qb-clothing:client:openOutfitMenu')
    CreateThread(function()
        TriggerEvent("rcore_clothes:openOutfits")
    end)
end)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.rcore.cz/paid-resources/rcore_clothing/rcore_clothes/qbcore-apartments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
