you can send all this information in a table then index it on the other client. For example
– Client
local Item = {}
Item.Name = ‘Pet’
Item.Id = 0
Event:FireServer(‘AddItem’,plr1,plr2,Item)
– Server
function AddItem(…)
local plr1,pl2,item = …
– could verify whether the item is owned by plr1 incase they fire the event with an item they do not own
Event:FireClient(plr1,‘AddItem’,item)
Event:FireClient(plr2,‘AddItem’,Item)
end
Event.OnServerEvent:connect(function(request,…)
if request == ‘AddItem’ then
AddItem(…)
end
end)
– Client
function AddItem(…)
– Add item to ongoing trade
end
Event.OnClientEvent:connect(function(request,…)
if request == ‘AddItem’ then
AddItem(…)
end
end)