Client Exports

getPropertyID

Get the property id the player is in

exports.sn_properties:getPropertyID()

Return:

  • propertyID: number | nil

getProperty

Get the property the player is in or with ID

exports.sn_properties:getProperty(propertyID:optional)

Return:

  • property: property

    • id: number

    • label: string

    • zone: string

    • coords: {x: number, y: number, z: number, w: number}

    • owner?: string

    • isOwner?: boolean

    • type: 'mlo' | 'shell' | 'ipl' | 'motorhome'

    • price: number

    • keys: table

      • identifier:

        • furnish: boolean

        • doors: boolean

        • storage: boolean

        • garage: boolean

        • admin: boolean

    • wall_color?: {r:number, g: number, b: number}

getProperties

Get owned properties

exports.sn_properties:getProperties()

Return:

  • properties Array: property{tables}

    • id: number

    • label: string

    • zone: string

    • coords: {x: number, y: number, z: number, w: number}

    • owner?: string

    • isOwner?: boolean

    • type: 'mlo' | 'shell' | 'ipl' | 'motorhome'

    • price: number

    • keys: table

      • identifier:

        • furnish: boolean

        • doors: boolean

        • storage: boolean

        • garage: boolean

        • admin: boolean

    • wall_color?: {r:number, g: number, b: number}

getAllProperties

Get all the properties

exports.sn_properties:getAllProperties()

Return:

  • properties Array: property{tables}

    • id: number

    • label: string

    • zone: string

    • coords: {x: number, y: number, z: number, w: number}

    • owner?: string

    • isOwner?: boolean

    • type: 'mlo' | 'shell' | 'ipl' | 'motorhome'

    • price: number

    • keys: table

      • identifier:

        • furnish: boolean

        • doors: boolean

        • storage: boolean

        • garage: boolean

        • admin: boolean

    • wall_color?: {r:number, g: number, b: number}

openDecorateMenu

Open the decorate menu

exports.sn_properties:decorateMenu(boolean, override)
  • boolean: true = open, false = close

  • override: true will not check if the player has permission

getPropertiesWithKeys

Get all the properties the player has keys to

exports.sn_properties:getPropertiesWithKeys()

Return:

  • Properties Ids: array

Last updated