Skip to main content

sys.upgrades_of_owner

When called as a subscript in a script that is hosted by one user, sys.upgrades_of_owner allows the upgrades of the script owner to be seen by a different user running the script.

Security Level

FULLSEC

Syntax

CLI

sys.upgrades_of_owner

Script

#fs.sys.upgrades_of_owner()

Parameters

filter

The 'filter' argument takes the same filter syntax as sys.upgrades.

full

The 'full' argument takes a boolean. When the value is set to true, sys.upgrades_of_owner will display the full detail arguments of the owner's upgrades.

i

The 'i' argument takes a number, or an array of numbers, and specifies the index(es) to be displayed.

Return

Returns an object.

CLI

>>sys.upgrades_of_owner
Usage: (in subscript) #fs.sys.upgrades_of_owner({filter:<optional filter specification>, full:<optional true or false>, i:<optional index or array>})

Script

{
i: 0,
loaded: true,
tier: 3,
rarity: 2,
name: "channel_count_v3",
type: "chat"
}
{
i: 1,
loaded: true,
tier: 3,
rarity: 1,
name: "char_count_v3",
type: "script_space"
}

Example

function(context, args)
{
return #fs.sys.upgrades_of_owner({ filter: { loaded: true, tier: 3 } })
}