TransferProperty

Transfer property to a new owner either user or a society

exports.nolag_properties:TransferProperty(propertyId, transferToType, transferToIdentifier, reason)

Parameters

  • propertyId: number The property ID

  • transferToType: 'user' | 'society' The type of the new owner

  • transferToIdentifier: string The identifier of the new owner either the citizenid(identifier) of the player or the name of the job

  • reason?: string The reason of the transfer that will be noted in the database. If not provided it will be just "Transferred the property"

Return Value

  • boolean

  • string?: Error message if the sale failed

Last updated