• Inventory help
    3 replies, posted
Can someone help me please with making a inventory because i have never made one before and i don't know where to start. i don't want to make it a swep because i want it to show on the hud all the time so as any one got any ideas how i could do this, i wanted to make it like the one in dead rising.
Learn about tables, vgui and usermessages.
Thanks for the reply, i know about vgui , usermessages and abit about tables. How would i do the item slots for the hud, would i just do do a loop through the players inventory table and assign each one to a slot and how would i do a item limit?
[lua] local limit = 10 if( #ply.Inventory >= limit ) then Msg("You cannot hold anymore items.\n") end [/lua]
Sorry, you need to Log In to post a reply to this thread.