Exports

Server-side exports

House Interface

interface House {
    house: {
        i: string,
        v: number
    },
    owner: string,
    keys: Array<{ identifier: string, name: string } | null>,
    stashes: Array<{ [key: string]: number }> | false,
    purchasedAt: number,
    rented: boolean
}

GetApartmentsInfo

Returns all informations about apartments in specific hotel

exports['oi_housing']:GetApartmentsInfo(motel, rented)
  • motel: string

  • rented?: boolean

    • If you want to fetch data also about rented apartments

Returns:

  • houses: House[]

Example:

GetPlayerApartmets

Retuns player's all apartments or these in specific motel

  • player: number

  • motel?: string

Returns:

  • apartments: House[] | {[key: string]: House[]}

Example:

ChangeOwner

Faster way to change owner of specific apartment. Returns if apartment has been transferred successfuly

  • motel: string

  • apartmentIndex: number

  • identifier: string

Returns:

  • success: boolean

Example:

Last updated