Player GetItemInfo

This page was last updated during patch v1.1.1824. The current patch is .
;Usage
info = Player.GetItemInfo(itemId)
;Examples:
<nowiki>
-- get current loadout primary weapon info
function OnBattleframeChanged()
 local loadout = Player.GetCurrentLoadout()
 if loadout and loadout.items.primary_weapon then
 primary_weapon_info = Player.GetItemInfo(loadout.items.primary_weapon.item_guid)
 end
end
</nowiki>
Example return.
<nowiki>
"durability" = {
 "pool" = 0, 
 "current" = 1000,
}, 
"stats" = {
 "maxAmmo" = 60, 
 "roundsPerBurst" = 1, 
 "repairPoints" = 0, 
 "damagePerSecond" = 714.011536, 
 "ammoPerBurst" = 1,
}, 
"description" = "Fires a plasma ball that on impact detonates doing area of effect damage.", 
"character_scalars" = {
 "name" = "Power Rating", 
 "color" = "red", 
 "format" = "%.2f", 
 "is_scalar" = true, 
 "value" = 44,
}, 
"itemTypeId" = "114002", 
"slotIdx" = 1, 
"attributes" = {
 "min" = 1100, 
 "format" = "%.2f ms/burst", 
 "inverse" = true, 
 "max" = 1100, 
 "value" = 1042, 
 "stat_id" = 17, 
 "display_name" = "Rate of Fire", 
 "display_order" = 101,
}, 
{
 "min" = 2, 
 "format" = "%.2fm", 
 "inverse" = false, 
 "max" = 2, 
 "value" = 2.140000, 
 "stat_id" = 29, 
 "display_name" = "Splash Radius", 
 "display_order" = 103,
}, 
{
 "min" = 743.999695, 
 "format" = "%.2f", 
 "inverse" = false, 
 "max" = 743.999695, 
 "value" = 744, 
 "stat_id" = 954, 
 "display_name" = "Damage Per Round", 
 "display_order" = 100,
}, 
{
 "min" = 6, 
 "format" = "%d", 
 "inverse" = false, 
 "max" = 6, 
 "value" = 6, 
 "stat_id" = 956, 
 "display_name" = "Magazine Size", 
 "display_order" = 104,
}, 
{
 "inverse" = false, 
 "format" = "%.1fm", 
 "value" = 215, 
 "stat_id" = 957, 
 "display_name" = "Range", 
 "display_order" = 105,
}, 
{
 "inverse" = true, 
 "format" = "%.1fs", 
 "value" = 2, 
 "stat_id" = 1123, 
 "display_name" = "Reload Speed", 
 "display_order" = 107,
}, 
"tier" = {
 "level" = 0, 
 "description" = "Stageless gear that encompasses the entire craftable range", 
 "name" = "Unstaged",
}, 
"subTypeId" = "20", 
"itemId" = 744171221205556989, 
"dynamic_flags" = {
 "is_bound" = true, 
 "is_equipped" = true,
}, 
"hidden_modules" = {
 95417,
}, 
"rarity" = "rare", 
"web_icon_stem" = "ITEM_ID_85954", 
"craftingTypeId" = "254", 
"constraints" = {
 "cpu" = 0, 
 "mass" = 0, 
 "power" = 0,
}, 
"web_icon" = "http://d2ja7bjtwj8eb0.cloudfront.net/assets/items/64/ITEM_ID_85954.png", 
"type" = "weapon", 
"flags" = {
 "is_salvageable" = true, 
 "is_mailable" = true, 
 "is_tradable" = true,
}, 
"stack_size" = 1, 
"name" = "Fusillade Plasma Cannon", 
"required_level" = 40, 
"item_level" = 44, 
"certifications" = {
 "732",
}, 
"weaponType" = "Plasma Cannon", 
"slotted_modules" = {},
</nowiki>
Category:Addon_API