Solved Cancel OnDispenserGather

Discussion in 'Rust Discussion' started by MalkoR, Apr 1, 2017.

  1. How to cancel OnDispanserGather?

    I need to change items on despenser, for example metal.ore to metal fragments. If i do item.amount and than give other to player, rust gui showing to player metal fragments with right amount and also showing metal ore with 0 amount. Player must see just message about getting metal fragments. So i need to cancel dispenser and give another item, and i can't cancel it by onplayerattack, so, what can i do to let players gather metal fragments?