@name EGP button
@inputs EGP:wirelink User:entity
@outputs B1
@persist Cursor:vector2
#--------------------===============[|EGP EVENT ITEM GIVER/PLAYERMODEL|]===============--------------------
interval(100)
if(first())
    {
        EGP:egpClear()
        EGP:egpDrawTopLeft(1)
        EGP:egpBox(0,vec2(0,0),vec2(10000,10000))
       # EGP:egpRoundedBox(0,vec2(0,0),vec2(10000,10000))
        EGP:egpColor(1,vec(192,0,0))
        #EGP:egpRoundedBoxOutline(2,vec2(220,230),vec2(74,50))
        EGP:egpColor(2,vec(92,103,232)) 
        EGP:egpText(3,"",vec2(169,169))
        EGP:egpColor(3,vec(80,255,0))
        EGP:egpCircle(400,vec2(),vec2(12,12))
        EGP:egpColor(400,vec4(255,255,255,232))
        EGP:egpParentToCursor(400)
        EGP:egpSize(5,5)
    }
Cursor = EGP:egpCursor(User)
if(User&~User)
    {   
        ####################
        User:setModel("models/player/b4p/b4p_chewbacca.mdl")
        #################### Set Health
        #User:setHealth(100) 
        #################### THIS STIPS WEAPONS DO A # BEFORE IT AND IT WILL NOT WORK
       # User:stripWeapons()
        #############GIVE ITEMS
        #To Set The Item Simply Replace it here 
         #User:give("WEP HERE") <----------
        #EX:  User:give("weapon_pumpshotgun2")
        User:give("")
        User:give("")
        User:give("")
        User:give("")
        User:give("")
        User:give("")
        User:give("")
        
      
      
         
        ############
        LeftTop = EGP:egpPos(1)
        RightBottom = EGP:egpPos(1) + EGP:egpSize(1)
        if(inrange(Cursor, LeftTop, RightBottom))
            {
                B1=!B1
                print(3,"Player " + User:name() + " has pressed E on position " + toString(round(Cursor)))
            }
        if(B1) 
            {
                EGP:egpColor(1, vec4(255,255,400,0))
                EGP:egpSetText(3,"HIT E!")
                EGP:egpFont(3,"",50)
            
            }
        if(!B1)
            {
                EGP:egpColor(1, vec4(255,198,255,0))
                EGP:egpSetText(3,"DONE!")
            }
    }
