Jump to content

[HELP] Horn Shop


Recommended Posts

Lately I was messing with gui editor and I have figured out an awesome idea. The only problem is I don't know how to deal with it.

What I want to do:

I've made a gui with Tab Panels "Types of Horns" , won't say them all. Well, I want to allow players to buy a horn and once they buy it it will setElementData that the system knows that he bought it. Means, If he reconnects he will still have that one.

I JUST NEED AN EXAMPLE, NOR A COMPLETE SCRIPT!

Don't worry about sounds, Just if you are willing to edit my code below please write everything. I know how to edit stuff and also deal with stuff :D

GUIEditor = { 
    tab = {}, 
    staticimage = {}, 
    tabpanel = {}, 
    label = {}, 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(286, 183, 798, 473, "StoryRoam - Horn Shop", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF9100") 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(10, 19, 259, 98, ":SRcameras/STORYROAMLOGO.png", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(8, 118, 271, 209, "Information:\n\nThe StoryRoam's horn shop is another cool\n feature which allows you to spend money\n on cool and funny horns.\n You can have fun with your friends or just beep\n all over the map \"{SMILIES_PATH}/icon_smile.gif\" alt=\"\" title=\"Smile\" />\n\nThe list next to this text is a list of available horns\n. Each horn has It's lenght and\n the lenght depends on the\n price.\n\nHave fun!", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 255, 145, 0) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(283, 23, 505, 440, false, GUIEditor.window[1]) 
  
        GUIEditor.tab[1] = guiCreateTab("Loud Horns", GUIEditor.tabpanel[1]) 
  
        GUIEditor.button[1] = guiCreateButton(12, 398, 103, 18, "", false, GUIEditor.tab[1]) 
        GUIEditor.button[2] = guiCreateButton(26, 27, 120, 55, "AFRO CIRCUS", false, GUIEditor.tab[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
  
        GUIEditor.button[3] = guiCreateButton(132, 55, 68, 15, "", false, GUIEditor.button[2]) 
  
        GUIEditor.button[4] = guiCreateButton(190, 27, 121, 55, "AAAAAAAA", false, GUIEditor.tab[1]) 
        guiSetFont(GUIEditor.button[4], "default-bold-small") 
        GUIEditor.button[5] = guiCreateButton(363, 29, 119, 53, "GTASA Song", false, GUIEditor.tab[1]) 
        guiSetFont(GUIEditor.button[5], "default-bold-small") 
  
        GUIEditor.tab[2] = guiCreateTab("Funny Horns", GUIEditor.tabpanel[1]) 
  
        GUIEditor.button[6] = guiCreateButton(27, 21, 121, 50, "HAH GAY!", false, GUIEditor.tab[2]) 
        guiSetFont(GUIEditor.button[6], "default-bold-small") 
        GUIEditor.button[7] = guiCreateButton(186, 21, 124, 50, "BARBIE GIRL", false, GUIEditor.tab[2]) 
        guiSetFont(GUIEditor.button[7], "default-bold-small") 
        GUIEditor.button[8] = guiCreateButton(361, 21, 113, 50, "SEXY MAN", false, GUIEditor.tab[2]) 
        guiSetFont(GUIEditor.button[8], "default-bold-small") 
  
        GUIEditor.tab[3] = guiCreateTab("Animal Horns", GUIEditor.tabpanel[1]) 
  
        GUIEditor.button[9] = guiCreateButton(32, 26, 131, 53, "COW", false, GUIEditor.tab[3]) 
        guiSetFont(GUIEditor.button[9], "default-bold-small") 
        GUIEditor.button[10] = guiCreateButton(205, 25, 135, 54, "DOG", false, GUIEditor.tab[3]) 
        guiSetFont(GUIEditor.button[10], "default-bold-small") 
        GUIEditor.button[11] = guiCreateButton(376, 24, 111, 55, "CHICKEN", false, GUIEditor.tab[3]) 
        guiSetFont(GUIEditor.button[11], "default-bold-small") 
  
        GUIEditor.tab[4] = guiCreateTab("Music Horns", GUIEditor.tabpanel[1]) 
  
        GUIEditor.button[12] = guiCreateButton(35, 28, 132, 57, "CALL ME MAYBE", false, GUIEditor.tab[4]) 
        guiSetFont(GUIEditor.button[12], "default-bold-small")     
    end 
) 

Peace up!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...