#Custom hotbar, how to stop it going into Inventory

1 messages · Page 1 of 1 (latest)

half onyx
#

Hi, for a custom hotbar , that let say has 8 slots, does anyone know how to prevent it when 8 are full , from the next one you pick up going into Inventory....?

So that nothing goes into the Inventory, and if the hotbar is full , it does not pick up the tool?

I know to start you do

starterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

but for most if not all hotbar systems I have messed around with , it will still go into the inventory.... even if you have the ` key disabled , it still goes into the Inventory.. because you are just blocking the keybind...

Any ideas or logic welcome.
Thanks

lucid nacelle
#

tool.Touched:Connect(Function(plr)
if plr.inventory.Value < 8 then
tool.Equip
end)

#

Can u do something like this

#

Basically just a check if full or not

#

(i've never made custom hotbar)

round robin
#

@half onyx Is the custom hotbar youre talking about based on roblox's inventory system, or not?

half onyx
#

@round robin currently the custom hotbar is client side using the roblox inventory system. so it is just displaying what is in it and the roblox system is disable via the code above.. what other options are there? not using the roblox inventory system at all? how is it bypassed, I am thinking to the the tools will be picked up via a E proximity prompt which then always code to check a custom hotbar system,, (instead of ontouch it goes in automatically.) what ideas do you have?

round robin
#

If you're depending on roblox's inventory system you will have some limitations

#

Although in this case you could maybe evade it

#

By creating the hotbar with only 8 frames for the items, then making them accessible through userinputservice

#

and then you can just check what tool is under what frame and then just run a Humanoid:EquipTool()

half onyx
#

ok, I was thinking that if I use a prompt , then I can check the hotbar total..

#

I was just wondering if there was some other way on the server side to still use the Roblox Inventory system, but only have it go into a hotbar, but via a lot of research , have not see a way to do it other then above

#

I have a custom hotbar system working other wise, but say it has 8 slots, if you pick up one more, it goes into the Inventory, which is disabled , so you can never access it , nor do I want the player to have more then what is in the hotbar

half onyx
lucid nacelle
#

Ive only ever made a custom hot bar

half onyx
#

ah

lucid nacelle
#

Completely custom

#

Not working with Roblox’s

#

I said I never worked with custom hot bar but I remember I did once

#

But just from nothing

half onyx
#

.. I was also wondering if there is code to see if there is anything in the inventory, and then just drop it... (not the hotbar)

#

so like if it did ever go into the inventory, it would also immediately be dropped.

lucid nacelle
#

Is there stuff in the object browser about inventory