Player GetCurrentLoadout

This page was last updated during patch v1.1.1824. The current patch is .
;Usage
Player.GetCurrentLoadout() = loadout
;Examples:
<nowiki>
-- set current loadout icon
function OnBattleframeChanged()
 local loadout = Player.GetCurrentLoadout()
 if loadout then
 local url = Game.GetItemInfoByType(loadout.item_types.chassis).web_icon
 PLAYER_FRAME:SetUrl(url);
 end
end
</nowiki>
Example return.
<nowiki>
"rarity" = "common", 
"item_types" = {
 "backpack" = 75877, 
 "primary_weapon" = 114002, 
 "chassis" = 76164,
}, 
"id" = 166643731, 
"weapon_b_visuals" = {
 "decal_gradient_ids" = {}, 
 "warpaint_palettes" = {}, 
 "warpaint_colors" = {
 "zones" = {},
 }, 
 "decals" = {}, 
 "ornament_group_ids" = {}, 
 "warpaint_patterns" = {},
}, 
"is_default" = false, 
"modules" = {
 "backpack" = {
 "item_guid" = "744252679689428989", 
 "slot_idx" = 0, 
 "item_sdb_id" = 101944,
 }, 
 {
 "item_guid" = "744252679689548285", 
 "slot_idx" = 1, 
 "item_sdb_id" = 101876,
 }, 
 {
 "item_guid" = "744163173711873021", 
 "slot_idx" = 2, 
 "item_sdb_id" = 104901,
 }, 
 {
 "item_guid" = "2329491515354775293", 
 "slot_idx" = 3, 
 "item_sdb_id" = 102046,
 }, 
 "primary_weapon" = {}, 
 "chassis" = {
 "item_guid" = "744116706863324157", 
 "slot_idx" = 0, 
 "item_sdb_id" = 99264,
 }, 
 {
 "slot_idx" = 1, 
 "item_sdb_id" = 85808,
 }, 
 {
 "slot_idx" = 2, 
 "item_sdb_id" = 85810,
 }, 
 {
 "slot_idx" = 3, 
 "item_sdb_id" = 85825,
 }, 
 {
 "slot_idx" = 4, 
 "item_sdb_id" = 85885,
 }, 
 {
 "slot_idx" = 5, 
 "item_sdb_id" = 85893,
 }, 
 {
 "slot_idx" = 6, 
 "item_sdb_id" = 85956,
 }, 
 {
 "slot_idx" = 7, 
 "item_sdb_id" = 85978,
 }, 
 {
 "slot_idx" = 8, 
 "item_sdb_id" = 85996,
 }, 
 {
 "slot_idx" = 9, 
 "item_sdb_id" = 86138,
 }, 
 {
 "slot_idx" = 10, 
 "item_sdb_id" = 86139,
 },
}, 
"items" = {
 "secondary_weapon" = {}, 
 "primary_weapon" = {
 "item_guid" = "744171221205556989", 
 "item_sdb_id" = 114002,
 }, 
 "chassis" = 76164,
}, 
"weapon_a_visuals" = {
 "decal_gradient_ids" = {}, 
 "warpaint_palettes" = {}, 
 "warpaint_colors" = {
 "zones" = {
 "WEAPON_A_COLOR_2" = {
 "light" = "316152", 
 "dark" = "101410",
 }, 
 "WEAPON_A_COLOR_1" = {
 "light" = "204029", 
 "dark" = "000000",
 }, 
 "WEAPON_A_COLOR_3" = {
 "light" = "5AC2AC", 
 "dark" = "202020",
 },
 },
 }, 
 "decals" = {}, 
 "ornament_group_ids" = {
 10283,
 }, 
 "warpaint_patterns" = {},
}, 
"name" = "Accord Assault", 
"tier" = 1, 
"item_guid" = "9202928473356715261", 
"visual_overrides" = {}, 
"chassis_visuals" = {
 "decal_gradient_ids" = {}, 
 "warpaint_palettes" = {
 "full_body" = "77230",
 }, 
 "warpaint_colors" = {
 "zones" = {
 "ARMOR_COLOR_1" = {
 "light" = "FF8DF6", 
 "dark" = "080808",
 }, 
 "GLOW_COLOR_2" = {
 "light" = "10F2C5", 
 "dark" = "080808",
 }, 
 "BODYSUIT_COLOR_1" = {
 "light" = "F6EEEE", 
 "dark" = "080808",
 }, 
 "GLOW_COLOR_1" = {
 "light" = "10F2C5", 
 "dark" = "080808",
 }, 
 "ARMOR_COLOR_3" = {
 "light" = "525052", 
 "dark" = "080808",
 }, 
 "BODYSUIT_COLOR_2" = {
 "light" = "202020", 
 "dark" = "080808",
 }, 
 "ARMOR_COLOR_2" = {
 "light" = "F6EEEE", 
 "dark" = "080808",
 },
 },
 }, 
 "decals" = {
 "id" = 10000, 
 "usage" = 255, 
 "transform" = {
 0.021271, 
 -0.051544, 
 -0.005215, 
 -0.020920, 
 -0.003386, 
 -0.051849, 
 -0.047394, 
 -0.021637, 
 0.020538, 
 -0.268555, 
 0.174927, 
 1.659180,
 }, 
 "color" = "4294967295",
 }, 
 "ornament_group_ids" = {}, 
 "warpaint_patterns" = {
 "id" = 10012, 
 "usage" = 0, 
 "transform" = {
 0, 
 4096, 
 0, 
 0,
 },
 }, 
 {
 "id" = 10004, 
 "usage" = 1, 
 "transform" = {
 31699, 
 2574, 
 0, 
 0,
 },
 },
}, 
"archtype" = "berzerker",
</nowiki>
Category:Addon_API