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:
stringrented?:
booleanIf 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:
numbermotel?:
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:
stringapartmentIndex:
numberidentifier:
string
Returns:
success:
boolean
Example:
Last updated