item trading, next steps?

//i apologize again for having posted same question in scripting sections,
//but please help lol
//(Solved)
i am stuck, because i dont know how to
make the characters interact before i
send the item through server and into their inventory,
id like ideas on how to send the accept or declined info
before the item is sent,
so far ive got, when the player clicks “give”,while an item is selected,
and a person is a selected, itwould send the item and then open up the gui
but i moved the tradingGUI info to happen first, but how would i send the info if he clicked it or not
back to the original character, to allow reading the rest of inventory code, and sending off the item
hope someone understands, any help is appreciated highly
question update
___how to hold off on sending item or make tradegui send the item back or accept it?
the other character to the player is a representation, like a server clone,
the main player is the main player and all others are clones, but any client player can be recognized by the server as the main one, by the playerid, just so you understand why this proccess is made this way

I dont know how exactly you set up your network communication, so i just guess.

If your server is authoritive, so the client sends ‘i want to trade this item with this person’ to the server, the server could save the sender and the reciever and the item and then wait for the reciever to respond. The response will then be executed, depending on accept/reject.

Really dont know if this is what you need though.

thank you also for your reply!
thats exactly what i need,
right now it automatically sends the item across the server, i have gui set up so it shows
accept or decline and i figured out how to send that info to the server aswell and the server shuts the gui
so i know that it all works so far, but stopping the item from directly sending, and waiting till the reciever responds, is really stumping me lol

i guess my other question is how in the sendcreateiteminventory, how do i wait to send it to player, until player has told it to send

Hm i would suggest you write a custom storage class which holds sender,reciever and item.

Then when the request reaches the server, the server adds a istnance of the custom class to a list and notifies the reciever.
Then when the reciever answers the server loops through the list and tries to find him in the recievers. Once he found, the server notifies the intial sender and sends the items.

thanks again for your reply!
is this storage class something i can look up to read how to do?
im not a good coder, everything i am working with is editing a project from asset store,
but i will do a search, but i ask if you can point to a tut or something relative,!

Oh i didnt mean anything fancy just a very simple class ala

C#:

public class TradeMessage{
 public NetworkPlayer sender;
 public NetworkPlayer reciever;
 //Item item; 
}

thank you very kindly
(solved)