6RB|AccenT Posted May 5, 2012 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 ) Race [10%] LoginPanel [0%] Hunter Area [100%] Spectators [100%] Level System [100%] Info Map [100%] Clan-Info [0%]
6RB|AccenT Posted May 5, 2012 Author Posted May 5, 2012 plz fast Race [10%] LoginPanel [0%] Hunter Area [100%] Spectators [100%] Level System [100%] Info Map [100%] Clan-Info [0%]
Jaysds1 Posted May 5, 2012 Posted May 5, 2012 sorry, you're going to need to use server side functions to get them: getResourceInfo getResourceName My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
6RB|AccenT Posted May 5, 2012 Author Posted May 5, 2012 how to edit plz edit my code Race [10%] LoginPanel [0%] Hunter Area [100%] Spectators [100%] Level System [100%] Info Map [100%] Clan-Info [0%]
iFoReX Posted May 5, 2012 Posted May 5, 2012 U need use 'trigger' elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
6RB|AccenT Posted May 5, 2012 Author Posted May 5, 2012 help me plz how to show maps in gridlist Race [10%] LoginPanel [0%] Hunter Area [100%] Spectators [100%] Level System [100%] Info Map [100%] Clan-Info [0%]
Kenix Posted May 5, 2012 Posted May 5, 2012 guiGridListAddColumn guiGridListAddRow guiGridListSetItemText http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
iFoReX Posted May 5, 2012 Posted May 5, 2012 he already try with guiGridListAddColumn guiGridListAddRow guiGridListSetItemText elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
6RB|AccenT Posted May 5, 2012 Author Posted May 5, 2012 yes already guiGridListAddColumn guiGridListAddRow guiGridListSetItemText Race [10%] LoginPanel [0%] Hunter Area [100%] Spectators [100%] Level System [100%] Info Map [100%] Clan-Info [0%]
iFoReX Posted May 5, 2012 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 elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
6RB|AccenT Posted May 5, 2012 Author 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 Race [10%] LoginPanel [0%] Hunter Area [100%] Spectators [100%] Level System [100%] Info Map [100%] Clan-Info [0%]
TwiX! Posted May 5, 2012 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 - Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]
Jaysds1 Posted May 5, 2012 Posted May 5, 2012 Srry, We can't help u MiX#if this is a stolen script/copied. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Castillo Posted May 6, 2012 Posted May 6, 2012 We don't help people who steal other's work. Topic locked. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts