Jump to content

What the problem with this online players script?


Turbe$Z

Recommended Posts

local screenW, screenH = guiGetScreenSize()
local online = #getElementsByType("player")

addEventHandler("onClientRender", root,
    function()
        dxDrawRectangle(screenW * 0.0069, screenH * 0.7144, screenW * 0.2188, screenH * 0.0289, tocolor(0, 0, 0, 178), false)
        dxDrawText("#00FF00Online #FFffffkockák: #00bafF"..online.."/32", screenW * 0.0097, screenH * 0.7144, screenW * 0.2257, screenH * 0.7422, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, true, false)
    end
)

will not charge players only if resource restart, why? :S 

/sorry for my bad english/

Link to comment
local screenW, screenH = guiGetScreenSize()

addEventHandler("onClientRender", root,
    function()
        local online = #getElementsByType("player")
        dxDrawRectangle(screenW * 0.0069, screenH * 0.7144, screenW * 0.2188, screenH * 0.0289, tocolor(0, 0, 0, 178), false)
        dxDrawText("#00FF00Online #FFffffkockák: #00bafF"..online.."/32", screenW * 0.0097, screenH * 0.7144, screenW * 0.2257, screenH * 0.7422, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, true, false)
    end
)

 

Edited by Walid
  • Like 1
Link to comment
15 hours ago, Walid said:

local screenW, screenH = guiGetScreenSize()

addEventHandler("onClientRender", root,
    function()
        local online = #getElementsByType("player")
        dxDrawRectangle(screenW * 0.0069, screenH * 0.7144, screenW * 0.2188, screenH * 0.0289, tocolor(0, 0, 0, 178), false)
        dxDrawText("#00FF00Online #FFffffkockák: #00bafF"..online.."/32", screenW * 0.0097, screenH * 0.7144, screenW * 0.2257, screenH * 0.7422, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, true, false)
    end
)

 

Thanks man :D

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...