Some games like Phantom Forces have no inventory tab. How do I remove it?
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.
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?