Modme Forums

Custum Hud Question for 12x2 perk layout

Game Modding | Call of Duty: Black Ops 3 | Scripting


TrapGodRa:

I had the 2 lines of code i needed before but had to reset my mod tools and had to install my hud again and i dont know lua language myself can anyone give me the codes? Thanks in advance!


Pepergogo:

You mean the code to make the perks in two rows?


TrapGodRa:

You mean the code to make the perks in two rows?

yessir

Pepergogo:

FULL CREDIT TO [USER=230]@F3ARxReaper666[/USER]

In your lua file go to this part:

local PerksWidget = CoD.ZMPerksContainerFactory.new(HudRef, InstanceRef)
    PerksWidget:setLeftRight(true, false, 130.000000, 281.000000)
    PerksWidget:setTopBottom(false, true, -62.000000, -26.000000)

And add this two lines below:

PerksWidget.PerkList:setHorizontalCount(7)        --Perk Row
PerksWidget.PerkList:setVerticalCount(7)


TrapGodRa:

FULL CREDIT TO [USER=230]@F3ARxReaper666[/USER]

In your lua file go to this part:
local PerksWidget = CoD.ZMPerksContainerFactory.new(HudRef, InstanceRef)
    PerksWidget:setLeftRight(true, false, 130.000000, 281.000000)
    PerksWidget:setTopBottom(false, true, -62.000000, -26.000000)

And add this two lines below:

PerksWidget.PerkList:setHorizontalCount(7)        --Perk Row
PerksWidget.PerkList:setVerticalCount(7)

thank you so much man youre the best fr