For the complete documentation index, see llms.txt. This page is also available as Markdown.

Client

Client-side exports exposed by rcore_housing. Call them from other resources running in the same client.

🏠 Properties

GetProperty

Returns the full property data for a given property id.

---@param propertyId number
---@return table|nil property
local property = exports.rcore_housing:GetProperty(propertyId)

Returns nil if no property exists with that id.

GetAllProperties

Returns every property currently known on the client.

---@return table properties
local properties = exports.rcore_housing:GetAllProperties()

📍 Player State

IsPlayerOnPropertyZone

Returns whether the player is currently standing in a property yard zone, along with the property id.

---@return boolean onZone
---@return number|nil propertyId
local onZone, propertyId = exports.rcore_housing:IsPlayerOnPropertyZone()
IsPlayerInsideProperty

Returns the id of the property the player is currently inside, plus its property data.

---@return number|nil propertyId
---@return table propertyData
local propertyId, propertyData = exports.rcore_housing:IsPlayerInsideProperty()

propertyData is an empty table ({}) when the player is not inside a property.

IsBuilding

Returns whether a property is a building.

🗝️ Access

HasKeys

Returns whether the player has access to a property - covers ownership, tenant status, shared access, and physical key items.

OpenMarketplace

Opens the marketplace menu.

OpenFurnitureMenu

Opens the property furniture menu.

OpenRealEstate

Opens the real estate / business menu.

🎙️ Events

playerEnteredFreecam

Triggered when a player enters freecam mode.

Parameters:

  • serverId (number) - The server ID of the player who entered freecam

playerExitFreecam

Triggered when a player exits freecam mode.

Parameters:

  • serverId (number) - The server ID of the player who exited freecam

vms_housing Compatibility

rcore_housing emulates vms_housing freecam events. If you're migrating from vms_housing, no rewrite needed — hooks work as-is.

Last updated