Opening an inventory window
#1
Brick 
Hello,

I'm trying to build a GUI for a lobby plugin I'm making, so I'd like to know if there's a way to open the pre-loaded inventory to a specific player?

I've looked into the cPlayer class, but I didn't see such a method.

Thanks in advance
Reply
Thanks given by:
#2
Hi,

You'll have to use the cPlayer:GetInventory method. Using that you'll get a cInventory object which you can use to manipulate the inventory of the player.
Reply
Thanks given by: MGlolenstine
#3
(08-01-2018, 04:38 PM)NiLSPACE Wrote: Hi,

You'll have to use the cPlayer:GetInventory method. Using that you'll get a cInventory object which you can use to manipulate the inventory of the player.

Sorry, I might've misformatted the question and I'm sorry for that, I was tired, but ok, let me rephrase.

I wanted to ask if there was a way to open a virtual chest inventory, that a player could use for "menu navigation".

And now, with clear head, I'm presenting the answer:
Code:
Player:OpenWindow()

How could I've been so blind...

Thanks anyways and godspeed!
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)