YimMenu-Lua / Alestarov-Menu

This is a lua build that contains the best ways to cheat Money, Clear statistics, Heist editor and much more. The script will be constantly updated. It contains the best features from other scripts.
GNU General Public License v2.0
34 stars 8 forks source link

I added buttons to fill MC and Bunker supplies and source 1 random Hangar crate. #3

Closed xesdoog closed 8 months ago

xesdoog commented 9 months ago

I separated the Bunker and Hangar and sorted the MC businesses based on my own gameplay preferences. I put code under AlmenuM as such :

Hangar = AlmenuM:add_tab("Hangar Cargo")
Rooster = Hangar:add_button("Get 1 Random Crate", function()
    PlayerIndex = stats.get_int("MPPLY_LAST_MP_CHAR") 
        if PlayerIndex == 0 then 
            MPX = "MP0_" 
        else 
            MPX = "MP1_"
        end
    stats.set_bool_masked(MPX .. "DLC22022PSTAT_BOOL3", true, 9)
end)

MCsupp = AlmenuM:add_tab("MC Supplies")
Coke = MCsupp:add_button("Fill Cocaine Supplies", function()
    globals.set_int(1662873+1+1, 1)
end)

Meth = MCsupp:add_button("Fill Meth Supplies", function()
    globals.set_int(1662873+1+2,1)
end)

Weed = MCsupp:add_button("Fill Weed Supplies", function()
    globals.set_int(1662873+1+3,1)
end)

Acid = MCsupp:add_button("Fill Acid Supplies", function()
    globals.set_int(1662873+1+6,1)
end)

Cash = MCsupp:add_button("Fill Cash Factory Supplies", function()
    globals.set_int(1662873+1+0,1)
end)

ID = MCsupp:add_button("Fill Document Forgery Supplies", function()
    globals.set_int(1662873+1+4,1)
end)

Bunker = AlmenuM:add_tab("Bunker Resupply")
fill = Bunker:add_button("Fill Bunker Supplies", function()
    globals.set_int(1662873+1+5,1)
end)