getCurrentHouse

The getCurrentHouse export allows you to retrieve the ID of the house you are currently inside. This is particularly useful for checking the player's current location and interacting with features specific to that house.


How to Use

To get the ID of the house you are currently in, you can use the following code:

local currentHouse = exports['qs-housing']:getCurrentHouse()

if currentHouse then
    print("You are currently in house: " .. currentHouse)
else
    print("You are not inside any house.")
end

This export will return the ID of the house if you are inside one or nil if you are not currently in any house. You can use this data for tasks like managing upgrades, decorations, or other house-specific functionalities.

Last updated