Jump to content

Qustion


Best-Killer

Recommended Posts

how i make dx gridlist ?? or somthing :D 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

This can do the job.

  1. 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 by Thrzu
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...