Jump to content

Eficiencia

Members
  • Posts

    115
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Eficiencia

  1. deu certo era o meta foi o meu meta que estava errado mt obg
  2. <meta/> <info author= "Eficiencia" /> <file src= "cEficiencia.Lua" type="client" /> <meta/> @Jonas^
  3. estou so q tipo ele n abre ele ta como client no meta sera q é isso?w
  4. local screenW, screenH = guiGetScreenSize() function hud() dxDrawRectangle(screenW * 0.7334, screenH * 0.0143, screenW * 0.2617, screenH * 0.2083, tocolor(0, 0, 0, 147), false) dxDrawImage(screenW * 0.7461, screenH * 0.0352, screenW * 0.0225, screenH * 0.0273, ":[Alisson]Radar/image/blip/22.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.7725, screenH * 0.0378, screenW * 0.0703, screenH * 0.0247, tocolor(251, 3, 9, 147), false) dxDrawRectangle(screenW * 0.7725, screenH * 0.0378, screenW * 0.0703, screenH * 0.0247, tocolor(251, 3, 9, 254), false) dxDrawImage(screenW * 0.7451, screenH * 0.0755, screenW * 0.0234, screenH * 0.0326, ":[Alisson]Radar/image/blip/27.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.7725, screenH * 0.0833, screenW * 0.0703, screenH * 0.0247, tocolor(186, 186, 186, 162), false) dxDrawRectangle(screenW * 0.7725, screenH * 0.0833, screenW * 0.0703, screenH * 0.0247, tocolor(186, 186, 186, 254), false) dxDrawImage(screenW * 0.7461, screenH * 0.1211, screenW * 0.0225, screenH * 0.0299, ":[Alisson]Radar/image/blip/29.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.7725, screenH * 0.1263, screenW * 0.0703, screenH * 0.0247, tocolor(249, 235, 81, 152), false) dxDrawRectangle(screenW * 0.7725, screenH * 0.1263, screenW * 0.0703, screenH * 0.0247, tocolor(249, 235, 81, 254), false) dxDrawImage(screenW * 0.7461, screenH * 0.1641, screenW * 0.0254, screenH * 0.0286, ":[Alisson]Radar/image/blip/49.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.7725, screenH * 0.1680, screenW * 0.0703, screenH * 0.0247, tocolor(79, 216, 250, 132), false) dxDrawRectangle(screenW * 0.7725, screenH * 0.1680, screenW * 0.0703, screenH * 0.0247, tocolor(79, 216, 250, 254), false) dxDrawImage(screenW * 0.8477, screenH * 0.0352, screenW * 0.0352, screenH * 0.0273, ":[Alisson]Radar/image/blip/52.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("R$ 00000000", screenW * 0.8877, screenH * 0.0391, screenW * 0.9795, screenH * 0.0625, tocolor(69, 190, 52, 254), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawImage(screenW * 0.8652, screenH * 0.0820, screenW * 0.1045, screenH * 0.1211, ":HUD-BVZ/files/img/0.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("1|000", screenW * 0.8652, screenH * 0.1966, screenW * 0.9639, screenH * 0.2161, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false, false, false) end addEventHandler("onClientRender", getRootElement(), hud) o debug script n demonstra nenhum erro
  5. ola quando boto a funçao addEventHandler("onClientRender", getRootElement(), hud). no meu client da hud, a mesma não aparece gostaria de que se possivel me ajudassem
  6. ja consegui arrumar peço aos moderadores que fechem o topico
  7. o debug acusa o erro Bad argument @ 'removeEventHandler' [expected function at argument 3, got boolean] o script é esse function DeltaSCR_Abrir() if DeltaSCR_Painel == false then --// VERIFICANDO SE O PAINEL ESTÁ "FALSE" addEventHandler("onClientRender", getRootElement(), AbrirPainel) --// ONDE ESTÁ NOME DX, ALTERE PELO NOME DE SUA FUNÇÃO DX AbrirPainel = true --// ISTO É UMA VARIAVEL QUE VAI DECLARAR SE O PAINEL ESTÁ EM "FALSE" OU "TRUE" / VOCÊ DEVERÁ CRIÁ-LA COMO "FALSE" else --// SENÃO removeEventHandler("onClientRender", getRootElement(), AbrirPainel) --// ONDE ESTÁ NOME DX, ALTERE PELO NOME DE SUA FUNÇÃO DX AbrirPainel = false --// ISTO É UMA VARIAVEL QUE VAI DECLARAR SE O PAINEL ESTÁ EM "FALSE" OU "TRUE" / VOCÊ DEVERÁ CRIÁ-LA COMO "FALSE" end end addEvent ("openPainelEvent", true) --// AQUI O NOME DO EVENTO CHAMADO PELO SERVER addEventHandler ("openPainelEvent", getRootElement(), DeltaSCR_Abrir) --// AQUI O EVENTO ESTÁ SENDO ADICIONADO
  8. peço desculpa pelo formato errado. Antes de pedir ajuda aqui tentei passar no debug mas ele nao alegou nenhum erro
  9. oi, sou novo na area de programaçao em .lua e fazer paineis dx. bom resolvi fazer uma hud, o mta reconhece o script mas a hud na aparece quando executo o mesmo. codigo: local screenW, screenH = guiGetScreenSize() function hud () local vida = getElementHealth ( localPlayer ) local colete = getPedArmor ( localPlayer ) local muniçao = getPedAmmoInClip ( localPlayer ) local total = getPedTotalAmmo ( localPlayer ) local Oxigenio = getPedOxygenLevel ( localPlayer ) local dinheiro = getPlayerMoney ( localPlayer ) local arma = gerPedWeapon ( localPlayer ) local vidaatual = (screenW * 0.0889) * (vida/100) local coleteatual = (screenW * 0.0889) * (colete/100) dxDrawRectangle(screenW * 0.7148, screenH * 0.0000, screenW * 0.2852, screenH * 0.0859, tocolor(0, 0, 0, 193), false) dxDrawImage(screenW * 0.7246, screenH * 0.0195, screenW * 0.0381, screenH * 0.0430, ":Hud/img/22.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.7686, screenH * 0.0273, screenW * 0.0889, screenH * 0.0273, tocolor(173, 0, 0, 126), false) dxDrawRectangle(screenW * 0.7686, screenH * 0.0273, vidaatual, screenH * 0.0273, tocolor(173, 0, 0, 254), false) dxDrawImage(screenW * 0.8633, screenH * 0.0143, screenW * 0.0342, screenH * 0.0456, ":Hud/img/27.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.9014, screenH * 0.0273, screenW * 0.0889, screenH * 0.0273, tocolor(116, 116, 116, 141), false) dxDrawRectangle(screenW * 0.9014, screenH * 0.0273, coleteatual, screenH * 0.0273, tocolor(116, 116, 116, 254), false) dxDrawImage(screenW * 0.7207, screenH * 0.0859, screenW * 0.0576, screenH * 0.0716, ":Hud/armas/"..arma..".png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("1|0", (screenW * 0.7246) - 1, (screenH * 0.1589) - 1, (screenW * 0.7725) - 1, (screenH * 0.1797) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("1|0", (screenW * 0.7246) + 1, (screenH * 0.1589) - 1, (screenW * 0.7725) + 1, (screenH * 0.1797) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("1|0", (screenW * 0.7246) - 1, (screenH * 0.1589) + 1, (screenW * 0.7725) - 1, (screenH * 0.1797) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("1|0", (screenW * 0.7246) + 1, (screenH * 0.1589) + 1, (screenW * 0.7725) + 1, (screenH * 0.1797) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("1|0", screenW * 0.7246, screenH * 0.1589, screenW * 0.7725, screenH * 0.1797, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.7832, screenH * 0.0924, screenW * 0.2070, screenH * 0.0534, tocolor(1, 1, 1, 197), false) dxDrawImage(807, 76, 30, 26, ":Hud/img/10.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.8271, screenH * 0.1120, screenW * 0.0605, screenH * 0.0143, tocolor(129, 130, 0, 197), false) dxDrawRectangle(screenW * 0.8271, screenH * 0.1120, screenW * 0.0605, screenH * 0.0143, tocolor(233, 235, 0, 254), false) dxDrawImage(914, 79, 27, 23, ":Hud/img/17.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.9248, screenH * 0.1120, screenW * 0.0605, screenH * 0.0143, tocolor(2, 180, 232, 162), false) dxDrawRectangle(screenW * 0.9248, screenH * 0.1120, screenW * 0.0605, screenH * 0.0143, tocolor(1, 174, 225, 254), false) dxDrawRectangle(screenW * 0.7822, screenH * 0.1549, screenW * 0.0918, screenH * 0.0378, tocolor(0, 0, 0, 194), false) dxDrawText("Oxigenio:"..Oxigenio.."%", screenW * 0.7813, screenH * 0.1576, screenW * 0.8740, screenH * 0.1927, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) dxDrawText("R$"..dinheiro.., screenW * 0.7813, screenH * 0.2018, screenW * 0.9688, screenH * 0.2227, tocolor(53, 251, 0, 194), 2.00, "default-bold", "left", "top", false, false, false, false, false) end ) addEventHandler( "onClientRender", getRootElement(), hud )
×
×
  • Create New...