JohnDoom Posted January 12, 2023 Share Posted January 12, 2023 (edited) Hello everyone, all right? I'm having a problem with my script on my server, the image simply don't want to load... Fala pessoal, tudo certo? Estou tendo problema com meu script no meu servidor, a imagem simplesmente não quer carregar... Meta: <meta> <info name="Infosilveira" author="Silveira" version="1.0" description="TTC-Community" /> <script src="painelsilveira.lua" type="client" cache="false"/> --Imagens <file src="files/background.png"/> </meta> Client side: local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1366), (screenH/768) local exibindo_painel = false function PainelInfoSilveira() dxDrawImage(screenW * 0.1896, screenH * 0.1901, screenW * 0.6208, screenH * 0.6211, "files/background.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) --Lista de Informações dxDrawText("1º DISCORD: http://discord.gg/seuinvite", screenW * 0.2094, screenH * 0.4167, screenW * 0.4473, screenH * 0.4466, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("2º IP CONEXÃO: mtasa://endereço:porta", screenW * 0.2094, screenH * 0.4518, screenW * 0.4473, screenH * 0.4818, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("3º Complemento", screenW * 0.2094, screenH * 0.4896, screenW * 0.4473, screenH * 0.5195, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("4º Complemento", screenW * 0.2094, screenH * 0.5247, screenW * 0.4473, screenH * 0.5547, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("5º Complemento", screenW * 0.2094, screenH * 0.5599, screenW * 0.4473, screenH * 0.5898, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("6º Complemento", screenW * 0.2094, screenH * 0.5951, screenW * 0.4473, screenH * 0.6250, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("7º Complemento", screenW * 0.2094, screenH * 0.6302, screenW * 0.4473, screenH * 0.6602, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) --Lista de Comandos dxDrawText("/COMANDO1", screenW * 0.6340, screenH * 0.4167, screenW * 0.8719, screenH * 0.4466, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO2", screenW * 0.6340, screenH * 0.4518, screenW * 0.8719, screenH * 0.4818, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO3", screenW * 0.6340, screenH * 0.4870, screenW * 0.8719, screenH * 0.5169, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO4", screenW * 0.6340, screenH * 0.5221, screenW * 0.8719, screenH * 0.5521, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO5", screenW * 0.6340, screenH * 0.5586, screenW * 0.8719, screenH * 0.5885, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO6", screenW * 0.6340, screenH * 0.5885, screenW * 0.8719, screenH * 0.6185, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO7", screenW * 0.6340, screenH * 0.6185, screenW * 0.8719, screenH * 0.6484, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("MENTALIZE '/einfo' PARA FECHAR O PAINEL", 450, 590, 775, 613, tocolor(255, 255, 255, 255), 1.50, "default-bold", "left", "top", false, false, false, false, false) end addCommandHandler("einfo", function() if exibindo_painel == false then addEventHandler("onClientRender", getRootElement(), PainelInfoSilveira) exibindo_painel = true else removeEventHandler("onClientRender", getRootElement(), PainelInfoSilveira) exibindo_painel = false end end) bindKey("F2", "down", function() if exibindo_painel == false then addEventHandler("onClientRender", getRootElement(), PainelInfoSilveira) exibindo_painel = true else removeEventHandler("onClientRender", getRootElement(), PainelInfoSilveira) exibindo_painel = false end end) Error (photos of files are in the link to imgur): WARNING: [TREINO]\Informação\painelsilveira.lua:22: Error loading image @'dxDrawImage' [files/background.png] Edited January 12, 2023 by JohnDoom Link to comment
JohnDoom Posted January 12, 2023 Author Share Posted January 12, 2023 Solved, don't need help anymore, Salsichaum helped me!! Resolvido, precisa mais nao, Salsichaum me ajudou!! Meta: <meta> <info name="Infosilveira" author="Silveira" version="1.0" description="TTC-Community" /> <script src="painelsilveira.lua" type="client" cache="false"/> <file src="files/background.png"/> </meta> Client: local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1366), (screenH/768) local exibindo_painel = false function PainelInfoSilveira() dxDrawImage(screenW * 0.1896, screenH * 0.1901, screenW * 0.6208, screenH * 0.6211, "Files/Background.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) --Lista de Informações dxDrawText("Painel Freeroam: F1", screenW * 0.2094, screenH * 0.4167, screenW * 0.4473, screenH * 0.4466, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Painel Informações: F2", screenW * 0.2094, screenH * 0.4518, screenW * 0.4473, screenH * 0.4818, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Painel Veículo: F5", screenW * 0.2094, screenH * 0.4896, screenW * 0.4473, screenH * 0.5195, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Painel Discord: F6", screenW * 0.2094, screenH * 0.5247, screenW * 0.4473, screenH * 0.5547, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("5º Complemento", screenW * 0.2094, screenH * 0.5599, screenW * 0.4473, screenH * 0.5898, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("6º Complemento", screenW * 0.2094, screenH * 0.5951, screenW * 0.4473, screenH * 0.6250, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("7º Complemento", screenW * 0.2094, screenH * 0.6302, screenW * 0.4473, screenH * 0.6602, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) --Lista de Comandos dxDrawText("/COMANDO1", screenW * 0.6340, screenH * 0.4167, screenW * 0.8719, screenH * 0.4466, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO2", screenW * 0.6340, screenH * 0.4518, screenW * 0.8719, screenH * 0.4818, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO3", screenW * 0.6340, screenH * 0.4870, screenW * 0.8719, screenH * 0.5169, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO4", screenW * 0.6340, screenH * 0.5221, screenW * 0.8719, screenH * 0.5521, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO5", screenW * 0.6340, screenH * 0.5586, screenW * 0.8719, screenH * 0.5885, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO6", screenW * 0.6340, screenH * 0.5885, screenW * 0.8719, screenH * 0.6185, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("/COMANDO7", screenW * 0.6340, screenH * 0.6185, screenW * 0.8719, screenH * 0.6484, tocolor(255, 255, 255, 255), 1.40, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("GRUPO DE OPERAÇÕES ESPECIAIS", 450, 590, 775, 613, tocolor(255, 255, 255, 255), 1.50, "default-bold", "left", "top", false, false, false, false, false) end bindKey("F2", "down", function() if exibindo_painel == false then addEventHandler("onClientRender", getRootElement(), PainelInfoSilveira) exibindo_painel = true else removeEventHandler("onClientRender", getRootElement(), PainelInfoSilveira) exibindo_painel = false end end) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now