Turbe$Z

What the problem with this online players script?

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/

Share this post


Link to post

I don't think I understand what you want to say, can you explain what's wrong?

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post

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.