6RB|AccenT Posted May 5, 2012 Share Posted May 5, 2012 Hi guys I Create Grid List , guiGridListAddRow , guiGridListSetItemText help me to show name maps race scren shot Code showCursor ( true ) myWindow = guiCreateWindow (300,200,600,430, "Welcome To Your UserPanel,", false ) tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) tabMap = guiCreateTab( "Maps", tabPanel ) tabMaps = guiCreateLabel( 380, 10, 300, 50, "Search Maps:", false , tabMap) guiLabelSetColor(tabMaps,0,255,0) mapssearch = guiCreateEdit(377,30,200,29,"",false,tabMap) mapspriceLabel = guiCreateLabel(380,60,320,18,"Price : 4000$",false,tabMap) guiLabelSetColor(mapspriceLabel,255,150,0) refreshmapButton = guiCreateButton(375,80,200,30,"Refresh Map List",false,tabMap) mapsbyLabel = guiCreateLabel(380,120,320,18,"UserPanel By : MiX#",false,tabMap) guiCreateStaticImage (400,160,119,100,"img/logo.png",false,tabMap ) buynextButton = guiCreateButton(375,300,200,30,"Buy As Next Map",false,tabMap) local maplist = guiCreateGridList ( 5, 5, 350, 340, false , tabMap) local column = guiGridListAddColumn( maplist, "Name Map :", 0.85 ) local row = guiGridListAddRow ( maplist ) guiGridListSetItemText ( maplist, row, 1, tostring ( getResourceInfo ( map, 'name' ) ), false, false ) Link to comment
Jaysds1 Posted May 5, 2012 Share Posted May 5, 2012 sorry, you're going to need to use server side functions to get them: getResourceInfo getResourceName Link to comment
6RB|AccenT Posted May 5, 2012 Author Share Posted May 5, 2012 how to edit plz edit my code Link to comment
6RB|AccenT Posted May 5, 2012 Author Share Posted May 5, 2012 help me plz how to show maps in gridlist Link to comment
Kenix Posted May 5, 2012 Share Posted May 5, 2012 guiGridListAddColumn guiGridListAddRow guiGridListSetItemText Link to comment
iFoReX Posted May 5, 2012 Share Posted May 5, 2012 he already try with guiGridListAddColumn guiGridListAddRow guiGridListSetItemText Link to comment
6RB|AccenT Posted May 5, 2012 Author Share Posted May 5, 2012 yes already guiGridListAddColumn guiGridListAddRow guiGridListSetItemText Link to comment
iFoReX Posted May 5, 2012 Share Posted May 5, 2012 MiX u need use 'triggerClientEvent' or 'triggerServerEvent' and create a event with it 'addEvent' example sv-side(EXAMPLE) addEvent("example",true) addEventHandler("example", getRootElement(), function() ----Here the complement-------- end ) CL-SIDE(eXAMPLE) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() triggerServerEvent("example", getLocalPlayer()) end ) ---A example Link to comment
6RB|AccenT Posted May 5, 2012 Author Share Posted May 5, 2012 this Client.lua showCursor ( true ) myWindow = guiCreateWindow (300,200,600,430, "Welcome To Your UserPanel,", false ) tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) tabMap = guiCreateTab( "Maps", tabPanel ) tabMaps = guiCreateLabel( 380, 10, 300, 50, "Search Maps:", false , tabMap) guiLabelSetColor(tabMaps,0,255,0) mapssearch = guiCreateEdit(377,30,200,29,"",false,tabMap) mapspriceLabel = guiCreateLabel(380,60,320,18,"Price : 4000$",false,tabMap) guiLabelSetColor(mapspriceLabel,255,150,0) refreshmapButton = guiCreateButton(375,80,200,30,"Refresh Map List",false,tabMap) mapsbyLabel = guiCreateLabel(380,120,320,18,"UserPanel By : MiX#",false,tabMap) guiCreateStaticImage (400,160,119,100,"img/logo.png",false,tabMap ) buynextButton = guiCreateButton(375,300,200,30,"Buy As Next Map",false,tabMap) local maplist = guiCreateGridList ( 5, 5, 350, 340, false , tabMap) local column = guiGridListAddColumn( maplist, "Name Map :", 0.85 ) local row = guiGridListAddRow ( maplist ) guiGridListSetItemText ( maplist, row, 1, tostring ( getResourceInfo ( map, 'name' ) ), false, false ) function greetingCommand ( commandName ) triggerServerEvent ( "onGreeting", getLocalPlayer(), "Hello World!" ) -- getLocalPlayer instead of getRootElement makes the client player the 'source' on the server function, eliminating the need for an additional player argument to be transferred. end addCommandHandler ( "greet", greetingCommand ) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() triggerServerEvent("example", getLocalPlayer()) end ) This Server.lua function greetingHandler ( message ) outputChatBox ( "The client says: " .. message, source ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler ) addEvent("example",true) addEventHandler("example", getRootElement(), function() ----Here the complement-------- end ) i edit map not show in grid list Link to comment
TwiX! Posted May 5, 2012 Share Posted May 5, 2012 WHY DID YOU F*CK USE MY TEMPLATE OF USER PANEL? (what im made for wtf//serveR?) You account / serial [CCFAE1B38C11C9F7D26AA9577B12BFB3] and ip [188.54.70.37] is already banned on three servers, good luck BE ORIGINAL Link to comment
Jaysds1 Posted May 5, 2012 Share Posted May 5, 2012 Srry, We can't help u MiX#if this is a stolen script/copied. Link to comment
Castillo Posted May 6, 2012 Share Posted May 6, 2012 We don't help people who steal other's work. Topic locked. Link to comment
Recommended Posts