Jump to content

Me ajude pfv emploro!


Recommended Posts

Gente eu não tenho condições de comprar mods e estou me virando procurando mods com debugscript 3 limpo.

Essa dashboard ao eu ligá-la ela ja aparece automaticamente na tela e quando eu ligo ela e reentro ela aparece no painel de login tres barrinhas que sao referentes a hud e fica na dashboard alguem pode ajudar?

local screenW,screenH = guiGetScreenSize()
local resW, resH = 1366,768
local x, y = (screenW/resW), (screenH/resH)
local Font_1 = dxCreateFont("files/fonts/font.ttf")
function dashboard()
    if (not isPlayerMapVisible()) then
	local x1, y1, z1 = getElementPosition (localPlayer)
        local localidade = getZoneName (x1, y1, z1)
         local Vida = math.floor(getElementHealth(getLocalPlayer()))
	    local Colete = math.floor(getPedArmor(getLocalPlayer())) 
		local players = getElementsByType( "player" )
		local ID = getElementData(getLocalPlayer(), "ID") or "N/A"
        local Emprego = getElementData (localPlayer,"Emprego") or "Desempregado"
	    local Fome = getElementData ( localPlayer, "hunger" ) or 0
        local Sede = getElementData ( localPlayer, "sede" ) or 0			
        local Cargo = getElementData ( localPlayer, "Cargo" ) or "Cidadão"			
        local Level = getElementData ( localPlayer, "Level" ) or "N/A"			
        local Exp = getElementData ( localPlayer, "minutes" ) or "N/A"			
        local Dinheiro_Server = getElementData ( localPlayer, "VIP:Moedas" ) or 0		
        local Cidade = getElementData ( localPlayer, "Cidade" ) or "Estrangeiro"		
        local Cargo = getElementData ( localPlayer, "cargo" ) or "Cidadão"		
        local idade = getElementData(localPlayer, "AirNew_RG_DataDeNascimento") or 0		
        local time = getRealTime()
        local hours = time.hour
        local minutes = time.minute
        local seconds = time.second
	    local Wanted = getPlayerWantedLevel(getLocalPlayer())
		local jogadores = #getElementsByType("player")
		local nome = getPlayerName(getLocalPlayer())
		local RG = getElementData(localPlayer, "ID") or "0"
	    local Dinheiro_Sujo = tonumber(getElementData ( getLocalPlayer(), "Dinheiro_AirNewSCR"  )) or 0
		local components = {"area_name", "radio", "vehicle_name"}
	    local Dinheiro_Mao = getPlayerMoney ( localPlayer ) or 0
		if Dinheiro_Mao > 0 then
		    Dinheiro_Mao = convertNumber ( Dinheiro_Mao )
		else
		    Dinheiro_Mao = Dinheiro_Mao
		end
		if Dinheiro_Sujo > 0 then
		    Dinheiro_Sujo = convertNumber ( Dinheiro_Sujo )
		else
		    Dinheiro_Sujo = Dinheiro_Sujo
		end
	    local Dinheiro_Banco = getElementData ( localPlayer, "Bank:Caixa" ) or 0
		if Dinheiro_Banco > 0 then
		    Dinheiro_Banco = convertNumber ( Dinheiro_Banco )
		else
		    Dinheiro_Banco = Dinheiro_Banco
		end
		setElementData ( localPlayer, "Dinheiro no Banco", "$"..Dinheiro_Banco.."" )
        if (hours >= 0 and hours < 10) then
            hours = "0"..time.hour
        end
        if (minutes >= 0 and minutes < 10) then
        	minutes = "0"..time.minute        end
        if (seconds >= 0 and seconds < 10) then
        	seconds = "0"..time.second
        end
        local meses = {"01", "02", "03", "04", "05", "06",  "07", "08", "09", "10", "11", "12"}
        local dias = {"Sunday ", "Segunda Feira", "Terça Feira", "Quarta Feira", "Quinta Feira", "Fri ", "Sabado"}
        local dia = ("%02d"):format(time.monthday)
        local ano = ("%02d"):format(time.year + 1900)
        local diaa = dias[time.weekday + 1]
        local mes = meses[time.month + 1]
		local MaxDePlayers = "100"
		exports["Blur"]:dxDrawBluredRectangle(x*235, y*133, x*884, y*515, tocolor(255, 255, 255, 171))
		dxDrawImage(x*235, y*133, x*884, y*515, "files/images/fundo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawText(nome, x*303, y*216, x*424, y*245, tocolor(240, 243, 251, 223), 1.00, Font_1, "left", "center", false, false, false, false, false)	   
	    dxDrawText(jogadores.."/"..MaxDePlayers.."Players On", x*613, y*595, x*749, y*612, tocolor(240, 243, 251, 223), 0.90, Font_1, "center", "center", false, false, false, false, false)
        dxDrawText(ID, x*490, y*214, x*532, y*245, tocolor(240, 243, 251, 223), 1.00, Font_1, "center", "center", false, false, false, false, false)
        dxDrawText(Dinheiro_Mao, x*315, y*501, x*507, y*519, tocolor(240, 243, 251, 223), 1.00, Font_1, "left", "bottom", false, false, false, false, false)
        dxDrawText(Dinheiro_Banco, x*315, y*549, x*507, y*567, tocolor(240, 243, 251, 223), 1.00, Font_1, "left", "bottom", false, false, false, false, false)
        dxDrawText(Dinheiro_Sujo,  x*315, y*598, x*507, y*616, tocolor(240, 243, 251, 223), 1.00, Font_1, "left", "bottom", false, false, false, false, false)
        dxDrawText(Level, x*618, y*212, x*696, y*226, tocolor(240, 243, 251, 223), 1.00, Font_1, "left", "top", false, false, false, false, false)
        dxDrawText(idade.. "Anos de Idade", x*303, y*317, x*424, y*346, tocolor(240, 243, 251, 223), 1.00, Font_1, "center", "center", false, false, false, false, false)
        dxDrawText(Exp, x*639, y*254, x*717, y*268, tocolor(240, 243, 251, 223), 1.00, Font_1, "left", "top", false, false, false, false, false)   
		dxDrawText(Emprego, x*313, y*393, x*545, y*422, tocolor(240, 243, 251, 223), 1.00, Font_1, "left", "center", false, false, false, false, false)
		dxDrawText(localidade, x*968, y*603, x*1085, y*619, tocolor(240, 243, 251, 223), 0.90, Font_1, "left", "bottom", false, false, false, false, false)
		dxDrawText(Cidade, x*303, y*268, x*474, y*296, tocolor(240, 243, 251, 223), 1.00, Font_1, "left", "center", false, false, false, false, false)
		dxDrawText(Cargo, x*313, y*437, x*545, y*466, tocolor(240, 243, 251, 223), 1.00, Font_1, "left", "center", false, false, false, false, false)
		dxDrawText(hours..":"..minutes, x*858, y*605, x*920, y*619, tocolor(240, 243, 251, 223), 0.90, Font_1, "center", "bottom", false, false, false, false, false)
		if Wanted > 0 then
		dxDrawText("Nome Sujo ("..Wanted..")", x*862, y*573, x*973, y*590, tocolor(240, 243, 251, 223), 0.90, Font_1, "left", "center", false, false, false, false, false)
        else
		dxDrawText("Nome Limpo", x*862, y*573, x*973, y*590, tocolor(240, 243, 251, 223), 0.90, Font_1, "left", "center", false, false, false, false, false)
        end
        dxDrawRectangle(x*894, y*217, x*201/100*Sede, y*26, tocolor(7, 114, 248, 253), true)
        dxDrawRectangle(x*894, y*267, x*201/100*Fome, y*26, tocolor(251, 137, 3, 253), true)
        dxDrawRectangle(x*894, y*316, x*201/100*Vida, y*26, tocolor(242, 28, 11, 208), true)
        dxDrawRectangle(x*894, y*365, x*201/100*Colete, y*26, tocolor(48, 92, 204, 208), true)  
        dxDrawText("brazucarp.com.br", x*873, y*450, x*1075, y*472, tocolor(255, 255, 255, 255), 1.2, Font_1, "left", "center", false, false, false, false, false)
        dxDrawText("discord.com/EmBreve", x*873, y*497, x*1075, y*519, tocolor(255, 255, 255, 255), 1.2, Font_1, "left", "center", false, false, false, false, false)
	 
end
end

function criarPed()
    local skin = getElementModel(localPlayer)
    x1, y1, z1 = getCameraMatrix()
    pedS = createPed(skin, x1, y1, z1)
    pedHype = exports.objectPreview:createObjectPreview(pedS, 0, 0, 170, x*425, y*187, x*500, y*407, false, true, true)
end

function destruirPed()
    exports.objectPreview:destroyObjectPreview(pedHype)
    destroyElement(pedS)
    pedS = nil
end

local isDXVisible = false
bindKey ("TAB", "both", function()
    if isDXVisible then
        removeEventHandler( "onClientRender", root, dashboard )
		destruirPed()
    else
        addEventHandler( "onClientRender", root, dashboard )
		criarPed()
    end
    isDXVisible = not isDXVisible
end)
function convertNumber ( number )   
    local formatted = number   
    while true do       
        formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1.%2')     
        if ( k==0 ) then       
            break   
        end   
    end   
    return formatted 
end

function setHud()
    addEventHandler("onClientRender", getRootElement(), dashboard)
    setPlayerHudComponentVisible("armour", false)
    setPlayerHudComponentVisible("wanted", false)
    setPlayerHudComponentVisible("weapon", false)
    setPlayerHudComponentVisible("money", false)
    setPlayerHudComponentVisible("health", false)
    setPlayerHudComponentVisible("clock", false)
    setPlayerHudComponentVisible("breath", false)
    setPlayerHudComponentVisible("ammo", false)

    for _, component in ipairs( components ) do
        setPlayerHudComponentVisible( component, false )
    end
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), setHud)

function removeHud()
    setPlayerHudComponentVisible("armour", false)
    setPlayerHudComponentVisible("wanted", true)
    setPlayerHudComponentVisible("weapon", true)
    setPlayerHudComponentVisible("money", true)
    setPlayerHudComponentVisible("health", false)
    setPlayerHudComponentVisible("clock", true)
    setPlayerHudComponentVisible("breath", true)
    setPlayerHudComponentVisible("ammo", true)
end
addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()), removeHud)

 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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