you could make an array of the items in an inventory and if its like type gun remove it and then grant them the new item. I don’t think its possible for you to know what item they have out.
I wish epic would expand on the agent class or at least have some built in methods but ig its wtvr