GerardWay Posted October 18, 2013 Share Posted October 18, 2013 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 ) The whole image didn't show up, so here's the link for the Image - http://i.imgur.com/BDlL5ga.png Link to comment
Castillo Posted October 18, 2013 Share Posted October 18, 2013 We don't accept requests here. You must use the event onClientGUIClick, with the following functions: guiGridListGetSelectedItem guiGridListGetItemText Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now