Client exports

IsPlayerInPropertyZone

exports["rtx_housing"]:IsPlayerInPropertyZone()

Checks whether the player is currently inside any property zone.

Returns:

  • insideZone true / false (boolean)

  • propertyId (number | nil)

  • propertyData (table | nil)

chevron-rightExamplehashtag
local inside, propertyid, propertydata = exports["rtx_housing"]:IsPlayerInPropertyZone()

IsCoordsInsideZone

exports["rtx_housing"]:IsCoordsInsideZone(propertyId, coords)

Checks whether the given coordinates are in the zone

Parameters:

  • propertyId (number)

  • coords (vector3)

Returns:

  • true / false (boolean)

chevron-rightExamplehashtag

GetPropertyData

Returns stored data for a specific property.

Parameters:

  • propertyId (number)

Returns:

  • nil if property does not exist

  • property data (table)

chevron-rightExamplehashtag

HasPlayerAnyPropertyPermissions

Checks if the local player has at least one permission for the property.

Parameters:

  • propertyId (number)

Returns:

  • true / false (boolean)

chevron-rightExamplehashtag

GetPropertyPermissions

Returns all permission values assigned to the player for the property.

Parameters:

  • propertyId (number)

Returns:

  • table of permission values

chevron-rightExamplehashtag

GetPropertyPermission

Returns whether the player has the required permission in the property

Permission types:

  • furnitureMenu

  • unlocking

  • wardrobe

  • storage

  • manageKeys

  • upgrades

  • payBills

  • garage

  • orderServices

  • tenants

  • clean

  • doorbell

  • cameras

  • services

  • positions

Parameters:

  • propertyId (number)

  • permission type

Returns:

  • true / false (boolean)

chevron-rightExamplehashtag

IsPlayerInsideProperty

Checks if the player is in any property

Returns:

  • true / false (boolean)

  • propertyId (number)

  • insideType ("inside" / "outside")

  • propertyData (table)

chevron-rightExamplehashtag

GetPlayerOwnedProperties

Returns all properties owned by the player

Returns:

  • all properties owned by the player. (table)

chevron-rightExamplehashtag

TeleportPlayerToStartingApartment

Teleports the player into the starting apartment.

Last updated