@name Gun Store
@inputs EGP:wirelink
@outputs 
@persist Prices:gtable Items:gtable
@trigger 

function void printCommands(){
    print(_HUD_PRINTCONSOLE, "======================")
    print(_HUD_PRINTCONSOLE, "|Jim's Best Store Yet|")
    print(_HUD_PRINTCONSOLE, "================================================================================")
    print(_HUD_PRINTCONSOLE, "|Make sure to paste down the Gun Store Info E2 otherwise this will not work    |")
    print(_HUD_PRINTCONSOLE, "================================================================================")
    print(_HUD_PRINTCONSOLE, "|To set items and prices type /i (index of item) (name of item) (price of item)|")
    print(_HUD_PRINTCONSOLE, "|EXAMPLE: /i 1 AK47 600, this makes the first item an ak47 for 600 dollars     |")
    print(_HUD_PRINTCONSOLE, "================================================================================")
    }

if(first() | duped()){
    Prices = gTable("Prices", 0)
    Items = gTable("Items", 0)
    hint("Commands have been printed to console", 3)
    printCommands()
    }

if(first() | duped()){
    #Create Screen
        #Title 
        EGP:egpText(1, owner():name() + "'s Store", vec2(140, 30))
        EGP:egpSize(1, 30)
        EGP:egpLine(2, vec2(60,70), vec2(450, 70))
        EGP:egpLine(3, vec2(60,70), vec2(60, 0))
        EGP:egpLine(4, vec2(450, 70), vec2(450,0))
        #Creating Lists
        for(I=1, 6){
            EGP:egpText(4+I, I+".", vec2(30, 100+50*I))
            }
    }


