Client Exports
GetProperty
Returns full data of the specified property.
---@param {propertyId: number | string}
---@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).
---@return {propertyId: string | nil}
---@return {propertyData : table | nil}
local propertyId, propertyData = exports['vms_housing']:IsPlayerOnPropertyZone()
IsPlayerInsideProperty
Returns true
if the player is currently inside any property interior or inside MLO.
---@return {propertyId: string | nil}
---@return {propertyData : table | nil}
local propertyId, propertyData = exports['vms_housing']:IsPlayerInsideProperty()
GetCurrentRegion
Returns the current region by coords.
---@param {coords: vector3}
---@return {region: string | nil}
local region = exports['vms_housing']:GetCurrentRegion(coords)
HasKeys
Returns true
if the player has keys to the specified property.
---@param {propertyId: number | string}
---@return {hasKeys: boolean}
local hasKeys = exports['vms_housing']:HasKeys(propertyId)
HasPermissions
Returns true
if the player has the given permission for a property.
---@param {propertyId: number | string}
---@param {permission: string}
---@return {hasPermission: boolean}
local hasPermission = exports['vms_housing']:HasPermissions(propertyId, permission)
HasAnyPermission
Returns true
if the player has any permissions set for the property.
---@param {propertyId: number | string}
---@return {hasAnyPermission: boolean}
local hasAnyPermission = exports['vms_housing']:HasAnyPermission(propertyId)
IsHaveAnyApartment
Returns true
if the player owns any apartment in the specific building.
---@param {buildingId: number | string}
---@return {isHave: boolean}
local isHave = exports['vms_housing']:IsHaveAnyApartment(buildingId)
OpenMarketplace
Opens the Marketplace UI to buy or rent properties.
exports['vms_housing']:OpenMarketplace()
OpenManageMenu
Opens the management menu for a property (if has any permissions).
exports['vms_housing']:OpenManageMenu()
OpenFurnitureMenu
Opens the Furniture Menu for a given property (if allowed).
exports['vms_housing']:OpenFurnitureMenu()
Last updated
Was this helpful?