@name Cenn's Gun Shop
@inputs R:entity Money
@outputs Price:string Use
@persist E T:string
@trigger 
if(first()){Use = 0
    E = 500
    holoModel(1,"cube")}
if(~R) {
    if(R:isShipment()) {
        holoCreate(1)
        holoModel(1, R:shipmentModel())
        holoPos(1, entity():pos() + vec(0,20,0))
        holoAng(1,ang(0,90,0))
        holoParent(1, entity())
        E = R:shipmentPrice()/10 + 400
    }else{
        holoDelete(1)
    }
}
Price = E:toString()
if(Money<E){
Money=0
}
if(Money>=E){
    Use = 1
    Money=0
    
    timer("reset",500)
}
if(clk("reset")){Use=0}


