Best-Killer Posted December 3, 2016 Share Posted December 3, 2016 how i make dx gridlist ?? or somthing idk what means of it what i want !! i'm making top players kills dx i did everything the dx gui & functions & events but now i don't know how to make dxgridlist means : Player name , Kills i think it's need dxDrawText but how to make it with lines max 10 like this : player1 , kills 20 player2 , kills 30 player3 , kills 40 .......... ect Link to comment
Thrzu Posted December 3, 2016 Share Posted December 3, 2016 (edited) This can do the job. local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1600), (screenH/900) local list = { { "playername1", "kills1" }, { "playername2", "kills2" }, { "playername3", "kills3" }, { "playername4", "kills4" }, { "playername5", "kills5" }, { "playername6", "kills6" }, { "playername7", "kills7" }, { "playername8", "kills8" }, { "playername9", "kills9" }, { "playername10", "kills10" } } function drawThisBitch( ) for i, v in ipairs ( list ) do dxDrawText( v[1] .. " " .. v[2], x*111, (y*400)+(y*(55*i)), x*252, y*50, tocolor(207, 207, 207, 235), x*0.80, "pricedown", "left", "center", false, false, false, false, false) end end addEventHandler ( "onClientRender", root, drawThisBitch ) Edited December 3, 2016 by Thrzu Link to comment
Best-Killer Posted December 3, 2016 Author Share Posted December 3, 2016 helped me too much thx <3 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