Jump to content

LOGIN NÃO FUNCIONA


Recommended Posts

Salve galera, alguem pode me ajudar a descobrir o porque que a hud que eu criei não funciona quando dou start nela?

Deve ser algo besta que não fiz porem ainda sou novo em lua script e não consegui descobrir ainda...

Codigo abaixo:

 

function ZaaKHUD( ... )
   
     local Vida = math.floor ( getElementHealth ( localPlayer ) )
	 local Colete = math.floor ( getPedArmor ( localPlayer ) )
	 local Fome = getElementData(getLocalPlayer(), "AirNewSCR_Fome") or 0 -- Fome
	 local Sede = getElementData(getLocalPlayer(), "AirNewSCR_Sede") or 0 -- Sede
     local Banco = convertNumber(getElementData(localPlayer, "TS:Bancobb") or 0) -- Dinheiro Banco
	 local Dinheiro = convertNumber(getPlayerMoney(getLocalPlayer()))
     local Level = getElementData(getLocalPlayer(), "Level") or 1 -- Level do jogador	 

        dxDrawLine(1059 - 1, 0 - 1, 1059 - 1, 54, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1280, 0 - 1, 1059 - 1, 0 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1059 - 1, 54, 1280, 54, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1280, 54, 1280, 0 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(1059, 0, 221, 54, tocolor(42, 42, 42, 254), false)
        dxDrawImage(x*660, y367, x*0, y*0/-100*Vida, "images/fundo1.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(x*1063, y4, x*50, y*46/-100*Vida, "images/fundo1.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(X*1117, y4, x*50, y*46/-100*Colete, "images/fundo2.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(x*1225, y*4, x*50, y*46/-100*Sede, "images/fundo4.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(x*1171, y*4, x*50, y*46/-100*Fome, "images/fundo5.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(1069, 10, 38, 34, "images/vida.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(1123, 10, 38, 34, "images/colete.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(1177, 10, 38, 34, "images/fome.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(1231, 10, 38, 34, "images/sede.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawRectangle(1059, 53, 221, 1, tocolor(255, 255, 255, 255), false)
        dxDrawLine(1059 - 1, 55 - 1, 1059 - 1, 126, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1280, 55 - 1, 1059 - 1, 55 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1059 - 1, 126, 1280, 126, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1280, 126, 1280, 55 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(1059, 55, 221, 71, tocolor(0, 0, 0, 109), false)
        dxDrawImage(1069, 91, 30, 25, "images/carteira.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawImage(1069, 60, 30, 25, "images/banco.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawText("Banco: $"..Banco, 1106, 65, 1270, 82, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("Carteira: $"..Dinheiro, 1106, 95, 1270, 112, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawLine(980 - 1, 0 - 1, 980 - 1, 126, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1059, 0 - 1, 980 - 1, 0 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(980 - 1, 126, 1059, 126, tocolor(0, 0, 0, 255), 1, false)
        dxDrawLine(1059, 126, 1059, 0 - 1, tocolor(0, 0, 0, 255), 1, false)
        dxDrawRectangle(980, 0, 79, 126, tocolor(0, 0, 0, 109), false)
        dxDrawImage(987, 55, 66, 63, "images/fundo3.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawText("Nível", 985, 3, 1053, 53, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false)
        dxDrawText(" "..Level, 993, 64, 1049, 113, tocolor(0, 0, 0, 254), 1.50, "bankgothic", "center", "top", false, false, false, false, false)

end

 

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