Jump to content

Spawn GUI


GerardWay

Recommended Posts

Hey, I'm trying to create a GridList Spawn Menu, and I designed one using GUIEditor. Could somebody do the other coding for me please? I'm not lazy, I just struggle a lot with Gridlists.

GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(86, 57, 1173, 507, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 1154, 297, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Military Services", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Gangs", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Police Forces", 0.3) 
        guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "Soldier", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "Rebel", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "S.W.A.T Officer", false, false) 
        GUIEditor.button[1] = guiCreateButton(298, 365, 582, 132, "Spawn", false, GUIEditor.window[1])     
    end 
) 

BDlL5ga.png

The whole image didn't show up, so here's the link for the Image - http://i.imgur.com/BDlL5ga.png

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...