Hide Buttons
#115
This will hide buttons in the game_buttons container
--[[
Script made by Lee (Discord: l33_) - www.trainorcreations.com
If you want to support my work, feel free to donate at https://trainorcreations.com/donate
PS. Stop ripping off my work and selling it as your own.
]]--
local btnHide = {"statsButton", "botButton"}
function hideButtons()
if not modules.game_buttons.contentsPanel.buttons then return end
for i, child in ipairs(modules.game_buttons.contentsPanel.buttons:getChildren()) do
--warn(child:getId())
if table.contains(btnHide, child:getId()) then
child:hide()
end
end
end
UI.Button("Hide Buttons", function()
hideButtons()
end)
hideButtons() -- hides as soon as bot loads
22 Oct 2023