Depending how you want to do it… If you want them to press E on an npc in order to select the weapons, then the player receives them when they select them you’ll need to do a few things…
The NPC On use, send a message to the client ( empty; just a flag message to open the vgui ).
net receiver; empty. Just use it to create the vgui if not already created.
The weapons selection should be done using any method you want to… drop downs, or another vgui popup to select based on a table ( the shared table )
the button for “request these weapons” should send a net message to the server containing basic info…
We need to write the ID for the shared table to access the primary weapon and secondary weapon. 2 different Writes…
Net Receiver which reads 2 values, the primary key and the secondary key. It first checks to make sure the client is on the right team, then checks the shared table to see if the keys are value and then gives the weapons.
You basically just bounce messages back and forth after getting some input.