Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I remove inventory tab? [closed]

Asked by 6 years ago

Some games like Phantom Forces have no inventory tab. How do I remove it?

Closed as Not Constructive by RubenKan

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago

To remove it, one uses the game.StarterGui:SetCoreGuiEnabled() method, which has two arguments: coreguitype and enabled.

The enum for the backpack coregui is Enum.CoreGuiType.Backpack.

local enabled = false; -- true if enabled, false if disabled.
game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, enabled);

Just a warning, this disables the entire Backpack object, and as a result you cannot utilize any function of the backpack object.

Ad