Game GetResourceScanInfo

Returns resource and location details about a specific scan.
;Usage
{x,y,z, ownerId, composition[i]={itemTypeId, percent}} = Game.GetResourceScanInfo(scanId)
Parameter	Type 	Description
param_1 	number	Scan ID
;Return Values
Value 	Type 	Description
scan details	table	{x,y,z, composition[i]={itemTypeId, percent, resource_quality}, staked, ownerId}
x, y, x = number
composition.itemTypeId = number. Item ID of the mineral. Can be used to look up mineral details such as the name.
composition.percent = number. Returns a long decimal. Need to multiply x 100 then round to get a whole percent.
composition.resouce_quality = number. This is the CY value as a whole number.
staked = boolean
ownerId = seems to be a 19 digit number. Probably the player id.
;Examples:
<nowiki>
local ScanIds = Game.GetResourceScanIds();
--[[
{1 = <23>}
--]]
for _, m in pairs(ScanIds ) do
 logArray(Game.GetResourceScanInfo(m));
end
--[[
{
"ownerId" = <UserID>,
"x" = -303.8510437,
"z" = 20.33444786,
"locked" = false,
"composition" = {
 1 = {"itemTypeId" = <78019>,"percent" = 0.11213382,"resource_quality" = 533},
 2 = {"itemTypeId" = <82628>,"percent" = 0.40407029,"resource_quality" = 0},
 3 = {"itemTypeId" = <78015>,"percent" = 0.33342418,"resource_quality" = 409},
 4 = {"itemTypeId" = <78014>,"percent" = 0.15037169,"resource_quality" = 543}},
"y" = 434.23580933
}
--]]
</nowiki>
Category:Addon_API