Client Exports
GetProperty
Returns full data of the specified property.
---@return {propertyId: string | nil}
---@return {propertyData: table}
local propertyData = exports['vms_housing']:GetProperty(propertyId)GetPlayerProperties
Returns a list of all properties owned by the current player.
---@return {properties: table}: Data list of all properties
local properties = exports['vms_housing']:GetPlayerProperties()IsPlayerOnPropertyZone
Returns true if the player is standing in the property's yard/zone (outside).
IsPlayerInsideProperty
Returns true if the player is currently inside any property interior or inside MLO.
GetCurrentRegion
Returns the current region by coords.
HasKeys
Returns true if the player has keys to the specified property.
HasPermissions
Returns true if the player has the given permission for a property.
HasAnyPermission
Returns true if the player has any permissions set for the property.
IsHaveAnyApartment
Returns true if the player owns any apartment in the specific building.
TeleportToStartingApartment
Teleport the player directly to the property.
CreateDirtUnderPlayer
Creating dirt for the house under player.
You can use this in your eating / drinking system when a player eats, they may leave a stain or crumbs.
OpenMarketplace
Opens the Marketplace UI to buy or rent properties.
OpenManageMenu
Opens the management menu for a property (if has any permissions).
OpenFurnitureMenu
Opens the Furniture Menu for a given property (if allowed).
OpenRealEstate
Opens the Real Estate Agent Menu.
Last updated
Was this helpful?