1REDBULL Posted June 23, 2014 Share Posted June 23, 2014 السلام عليكم GUIEditor = { gridlist = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(821, 343, 219, 410, "VEHICLE", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.gridlist[1] = guiCreateGridList(10, 28, 198, 367, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "3.D", 0.9) for i = 1, 2 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "PO1", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "PO2", false, false) if guiGridListSetSelectedItem ( GUIEditor.gridlist[1], 0, 1) then outputChatBox("hiii") end end ) addEventHandler ("onClientGUIDoubleClick", GUIEditor.gridlist[1]) كل شي تمام بس المشكله اني لا ظغطت على الرو الي محدده ما يطلع الكلام يطلع اول ما يشتغل السكربت انلحس مخي وانا احاول اظبطه بكل الطرق Link to comment
Max+ Posted June 23, 2014 Share Posted June 23, 2014 GUIEditor = { gridlist = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(821, 343, 219, 410, "VEHICLE", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.gridlist[1] = guiCreateGridList(10, 28, 198, 367, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "3.D", 0.9) for i = 1, 2 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "PO1", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "PO2", false, false) end ) addEventHandler ("onClientGUIDoubleClick", root, function ( ) if ( source == GUIEditor.gridlist[1] ) then local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( row == -1 ) then return end local text = guiGridListGetItemText ( GUIEditor.gridlist[1], row, col ) if ( text == 'PO1' ) then outputChatBox('IAM , PO1', source, 255, 0, 0 ) elseif ( text == 'PO2' ) then outputChatBox('IAM , PO2', source, 255, 0, 0 ) end end end ) Link to comment
1REDBULL Posted June 24, 2014 Author Share Posted June 24, 2014 GUIEditor = { gridlist = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(821, 343, 219, 410, "VEHICLE", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.gridlist[1] = guiCreateGridList(10, 28, 198, 367, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "3.D", 0.9) for i = 1, 2 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "PO1", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "PO2", false, false) end ) addEventHandler ("onClientGUIDoubleClick", root, function ( ) if ( source == GUIEditor.gridlist[1] ) then local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( row == -1 ) then return end local text = guiGridListGetItemText ( GUIEditor.gridlist[1], row, col ) if ( text == 'PO1' ) then outputChatBox('IAM , PO1', source, 255, 0, 0 ) elseif ( text == 'PO2' ) then outputChatBox('IAM , PO2', source, 255, 0, 0 ) end end end ) مشكور فكيتلي عقده Link to comment
acount deleted Posted June 24, 2014 Share Posted June 24, 2014 (edited) * Edited June 24, 2014 by Guest 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