GetAllProperties

Returns all the properties that are owned by the specified owner.

exports.nolag_properties:GetAllProperties(owner, ownerType, includeRented)

Parameters

  • owner: string The identifier of the owner (citizenid or job name)

  • ownerType: 'user' or 'society' The type of the owner

  • includeRented?: boolean Whether to include the rented properties too

Return Value

The following table, or an empty table if the owner doesn't have any rented properties or own any properties

  • id: number

  • label: string

  • price: number

  • type: string

  • doorLocked: boolean

  • coords: vector3 or vector4

  • hasKey: boolean

Last updated