King021 Posted January 19, 2021 Share Posted January 19, 2021 (edited) To fazendo um painel DX e fiz com 2 abas A primeira aba tem o botao Player (botao pra abrir a segunda aba) na segunda aba tem o Botao invisivel(pra ficar invisivel) so que os botao tao na mesma posicao so q em aba diferente.ai quando eu clicko em player ele fica invisivel,mas isso era pra aconter na segunda aba.tem como alguem me ajudar? function Botao2 (_,state) if painel == false and aba == "aba2" then if state == "down" then if isCursorOnElement ( screenW * 0.8042, screenH * 0.3333, screenW * 0.9344, screenH * 0.3907 ) then triggerServerEvent("ficarInvisivel", localPlayer) aba = "aba2" painel = false end end end end addEventHandler ("onClientClick", root, Botao2 ) Edited January 19, 2021 by King021 Link to comment
IGUINHO SCR Posted January 20, 2021 Share Posted January 20, 2021 13 hours ago, King021 said: Consegue mandar uma print mais completa do código? function Botao2 (_,state) if painel == false and aba == "aba2" then if state == "down" then if isCursorOnElement ( screenW * 0.8042, screenH * 0.3333, screenW * 0.9344, screenH * 0.3907 ) then triggerServerEvent("ficarInvisivel", localPlayer) aba = "aba2" painel = false end end end end addEventHandler ("onClientClick", root, Botao2 ) --[[PROVAVELMENTE, VOCÊ TENHA ERRADO NA VERIFICAÇÃO DAS ABAS, MANDE O CÓDIGO DA PRIMEIRA ABA POR FAVOR MANO.]-- painel = false aba = "nil" function Botao2 (_,state) if painel == true and aba == "aba2" then if state == "down" then if isCursorOnElement ( screenW * 0.8042, screenH * 0.3333, screenW * 0.9344, screenH * 0.3907 ) then triggerServerEvent("ficarInvisivel", localPlayer) aba = "nil" painel = false end end end end addEventHandler ("onClientClick", root, Botao2 ) Link to comment
Boechat Posted January 20, 2021 Share Posted January 20, 2021 21 hours ago, King021 said: To fazendo um painel DX e fiz com 2 abas A primeira aba tem o botao Player (botao pra abrir a segunda aba) na segunda aba tem o Botao invisivel(pra ficar invisivel) so que os botao tao na mesma posicao so q em aba diferente.ai quando eu clicko em player ele fica invisivel,mas isso era pra aconter na segunda aba.tem como alguem me ajudar? function Botao2 (_,state) if painel == false and aba == "aba2" then if state == "down" then if isCursorOnElement ( screenW * 0.8042, screenH * 0.3333, screenW * 0.9344, screenH * 0.3907 ) then triggerServerEvent("ficarInvisivel", localPlayer) aba = "aba2" painel = false end end end end addEventHandler ("onClientClick", root, Botao2 ) Pra saber exatamente o q ta acontecendo seria melhor o código todo. Imagino que possa ser problema quando troca pra aba 1, pode ser que não está setando aba para "aba1" e o click continua funcionando na aba2. Link to comment
LucasST Posted January 21, 2021 Share Posted January 21, 2021 (edited) Exemplo que fiz rapidinho para tu entender mais ou menos a lógica de abas painel = false function abrir_dx() if painel then removeEventHandler("onClientRender",root,dx) showCursor(false) painel = false else addEventHandler("onClientRender",root,dx) showCursor(true) painel = true Aba = "Teste1" end end bindKey("b","down",abrir_dx) function dx() if Aba == "Teste1" then dxDrawRectangle(667, 422, 376, 232, tocolor(255, 255, 255, 255), false) elseif Aba == "Teste2" then dxDrawRectangle(667, 422, 376, 232, tocolor(0, 255, 255, 255), false) end end function trocarAba(button,state) if painel then if button == "left" and state == "down" then if Aba == "Teste1" then if isCursorOnElement(667, 422, 376, 232) then Aba = "Teste2" end elseif Aba == "Teste2" then if isCursorOnElement(667, 422, 376, 232) then Aba = "Teste1" end end end end end addEventHandler("onClientClick",root,trocarAba) Edited January 21, 2021 by LucasST Link to comment
King021 Posted January 21, 2021 Author Share Posted January 21, 2021 local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1440), (screenH/900) painel = false aba = nil --Dx feito no GuiEditor-- function PainelKing () if aba == "aba1" then dxDrawLine((screenW * 0.7839) - 1, (screenH * 0.2944) - 1, (screenW * 0.7839) - 1, screenH * 0.9704, tocolor(255, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9589, (screenH * 0.2944) - 1, (screenW * 0.7839) - 1, (screenH * 0.2944) - 1, tocolor(255, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.7839) - 1, screenH * 0.9704, screenW * 0.9589, screenH * 0.9704, tocolor(255, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9589, screenH * 0.9704, screenW * 0.9589, (screenH * 0.2944) - 1, tocolor(255, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.7839, screenH * 0.2944, screenW * 0.1750, screenH * 0.6759, tocolor(0, 0, 0, 202), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.2944, screenW * 0.1750, screenH * 0.0130, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.3074, screenW * 0.1750, screenH * 0.0083, tocolor(231, 0, 0, 254), false) dxDrawText("TROPA DO GALO", screenW * 0.7839, screenH * 0.2935, screenW * 0.9589, screenH * 0.3046, tocolor(255, 255, 255, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawImage(screenW * 0.7891, screenH * 0.2954, screenW * 0.0083, screenH * 0.0102, ":admin/client/images/flags/br.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.9453, screenH * 0.2954, screenW * 0.0083, screenH * 0.0102, ":admin/client/images/flags/br.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.3250) - 1, (screenW * 0.8073) - 1, screenH * 0.3833, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.3250) - 1, (screenW * 0.8073) - 1, (screenH * 0.3250) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.3833, screenW * 0.9396, screenH * 0.3833, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.3833, screenW * 0.9396, (screenH * 0.3250) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.3250, screenW * 0.1323, screenH * 0.0583, tocolor(255, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.3991) - 1, (screenW * 0.8073) - 1, screenH * 0.4574, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.3991) - 1, (screenW * 0.8073) - 1, (screenH * 0.3991) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.4574, screenW * 0.9396, screenH * 0.4574, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.4574, screenW * 0.9396, (screenH * 0.3991) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.3991, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.4778) - 1, (screenW * 0.8073) - 1, screenH * 0.5361, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.4778) - 1, (screenW * 0.8073) - 1, (screenH * 0.4778) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.5361, screenW * 0.9396, screenH * 0.5361, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.5361, screenW * 0.9396, (screenH * 0.4778) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.4778, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.5546) - 1, (screenW * 0.8073) - 1, screenH * 0.6130, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.5546) - 1, (screenW * 0.8073) - 1, (screenH * 0.5546) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.6130, screenW * 0.9396, screenH * 0.6130, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.6130, screenW * 0.9396, (screenH * 0.5546) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.5546, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.6315) - 1, (screenW * 0.8073) - 1, screenH * 0.6898, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.6315) - 1, (screenW * 0.8073) - 1, (screenH * 0.6315) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.6898, screenW * 0.9396, screenH * 0.6898, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.6898, screenW * 0.9396, (screenH * 0.6315) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.6315, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.7120) - 1, (screenW * 0.8073) - 1, screenH * 0.7704, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.7120) - 1, (screenW * 0.8073) - 1, (screenH * 0.7120) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.7704, screenW * 0.9396, screenH * 0.7704, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.7704, screenW * 0.9396, (screenH * 0.7120) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.7120, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.7963) - 1, (screenW * 0.8073) - 1, screenH * 0.8546, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.7963) - 1, (screenW * 0.8073) - 1, (screenH * 0.7963) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.8546, screenW * 0.9396, screenH * 0.8546, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.8546, screenW * 0.9396, (screenH * 0.7963) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.7963, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.8750) - 1, (screenW * 0.8073) - 1, screenH * 0.9333, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.8750) - 1, (screenW * 0.8073) - 1, (screenH * 0.8750) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.9333, screenW * 0.9396, screenH * 0.9333, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.9333, screenW * 0.9396, (screenH * 0.8750) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.8750, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.9611, screenW * 0.1750, screenH * 0.0083, tocolor(231, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.9481, screenW * 0.1750, screenH * 0.0130, tocolor(1, 0, 0, 254), false) dxDrawText("By-King021 e Garcia", screenW * 0.7839, screenH * 0.9491, screenW * 0.9589, screenH * 0.9602, tocolor(255, 255, 255, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("Player", screenW * 0.8089, screenH * 0.3278, screenW * 0.9370, screenH * 0.3787, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Armas", screenW * 0.8073, screenH * 0.4028, screenW * 0.9354, screenH * 0.4537, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Veiculos", screenW * 0.8094, screenH * 0.4815, screenW * 0.9375, screenH * 0.5324, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Teleporte", screenW * 0.8094, screenH * 0.5583, screenW * 0.9375, screenH * 0.6093, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("PVP", screenW * 0.8094, screenH * 0.6352, screenW * 0.9375, screenH * 0.6861, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Virar admin", screenW * 0.8094, screenH * 0.7157, screenW * 0.9375, screenH * 0.7667, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Anuncio", screenW * 0.8094, screenH * 0.8000, screenW * 0.9375, screenH * 0.8509, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Explodir todos os veiculos", screenW * 0.8094, screenH * 0.8787, screenW * 0.9375, screenH * 0.9296, tocolor(255, 255, 255, 255), 0.80, "pricedown", "center", "center", false, false, false, false, false) end if aba == "aba2" then dxDrawLine((screenW * 0.7833) - 1, (screenH * 0.2944) - 1, (screenW * 0.7833) - 1, screenH * 0.9676, tocolor(143, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, (screenH * 0.2944) - 1, (screenW * 0.7833) - 1, (screenH * 0.2944) - 1, tocolor(143, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7833) - 1, screenH * 0.9676, screenW * 0.9583, screenH * 0.9676, tocolor(143, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, screenH * 0.9676, screenW * 0.9583, (screenH * 0.2944) - 1, tocolor(143, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7833, screenH * 0.2944, screenW * 0.1750, screenH * 0.6731, tocolor(1, 0, 0, 170), false) dxDrawRectangle(screenW * 0.7833, screenH * 0.2944, screenW * 0.1750, screenH * 0.0176, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7833, screenH * 0.3120, screenW * 0.1750, screenH * 0.0093, tocolor(255, 3, 3, 254), false) dxDrawText("PLAYER", screenW * 0.7828, screenH * 0.2935, screenW * 0.9583, screenH * 0.3120, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.7833, screenH * 0.9583, screenW * 0.1750, screenH * 0.0093, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.3343) - 1, (screenW * 0.8042) - 1, screenH * 0.3907, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.3343) - 1, (screenW * 0.8042) - 1, (screenH * 0.3343) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.3907, screenW * 0.9365, screenH * 0.3907, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.3907, screenW * 0.9365, (screenH * 0.3343) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.3343, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.6009) - 1, (screenW * 0.8042) - 1, screenH * 0.6574, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.6009) - 1, (screenW * 0.8042) - 1, (screenH * 0.6009) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.6574, screenW * 0.9365, screenH * 0.6574, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.6574, screenW * 0.9365, (screenH * 0.6009) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.6009, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.5102) - 1, (screenW * 0.8042) - 1, screenH * 0.5667, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.5102) - 1, (screenW * 0.8042) - 1, (screenH * 0.5102) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.5667, screenW * 0.9365, screenH * 0.5667, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.5667, screenW * 0.9365, (screenH * 0.5102) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.5102, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.4204) - 1, (screenW * 0.8042) - 1, screenH * 0.4769, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.4204) - 1, (screenW * 0.8042) - 1, (screenH * 0.4204) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.4769, screenW * 0.9365, screenH * 0.4769, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.4769, screenW * 0.9365, (screenH * 0.4204) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.4204, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.7778) - 1, (screenW * 0.8042) - 1, screenH * 0.8343, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.7778) - 1, (screenW * 0.8042) - 1, (screenH * 0.7778) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.8343, screenW * 0.9365, screenH * 0.8343, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.8343, screenW * 0.9365, (screenH * 0.7778) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.7778, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.6907) - 1, (screenW * 0.8042) - 1, screenH * 0.7472, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.6907) - 1, (screenW * 0.8042) - 1, (screenH * 0.6907) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.7472, screenW * 0.9365, screenH * 0.7472, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.7472, screenW * 0.9365, (screenH * 0.6907) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.6907, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.8565) - 1, (screenW * 0.8042) - 1, screenH * 0.9130, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.8565) - 1, (screenW * 0.8042) - 1, (screenH * 0.8565) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.9130, screenW * 0.9365, screenH * 0.9130, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.9130, screenW * 0.9365, (screenH * 0.8565) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.8565, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawText("TROPA DO GALO", screenW * 0.7833, screenH * 0.9398, screenW * 0.9589, screenH * 0.9583, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("invisivel", screenW * 0.8042, screenH * 0.3333, screenW * 0.9344, screenH * 0.3907, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Dinheiro pra todos", screenW * 0.8042, screenH * 0.6907, screenW * 0.9344, screenH * 0.7481, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Dinheiro ", screenW * 0.8042, screenH * 0.6000, screenW * 0.9344, screenH * 0.6574, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Voar", screenW * 0.8042, screenH * 0.5093, screenW * 0.9344, screenH * 0.5667, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Trocar Skin", screenW * 0.8042, screenH * 0.4204, screenW * 0.9344, screenH * 0.4778, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Colete", screenW * 0.8042, screenH * 0.8565, screenW * 0.9344, screenH * 0.9139, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Vida", screenW * 0.8042, screenH * 0.7769, screenW * 0.9344, screenH * 0.8343, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false)-- body end if aba == "aba3" then dxDrawLine((screenW * 0.7823) - 1, (screenH * 0.2917) - 1, (screenW * 0.7823) - 1, screenH * 0.9657, tocolor(223, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, (screenH * 0.2917) - 1, (screenW * 0.7823) - 1, (screenH * 0.2917) - 1, tocolor(223, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7823) - 1, screenH * 0.9657, screenW * 0.9583, screenH * 0.9657, tocolor(223, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, screenH * 0.9657, screenW * 0.9583, (screenH * 0.2917) - 1, tocolor(223, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7823, screenH * 0.2917, screenW * 0.1760, screenH * 0.6741, tocolor(0, 0, 0, 196), false) dxDrawRectangle(screenW * 0.7823, screenH * 0.2917, screenW * 0.1755, screenH * 0.0148, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.3065, screenW * 0.1750, screenH * 0.0093, tocolor(213, 0, 0, 254), false) dxDrawText("Veiculos", screenW * 0.7823, screenH * 0.2917, screenW * 0.9578, screenH * 0.3065, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Para Criar Veiculos\n/veh ID ou NOME", screenW * 0.7932, screenH * 0.3269, screenW * 0.9505, screenH * 0.3861, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Destruir Veiculos\n/dv ", screenW * 0.7932, screenH * 0.5704, screenW * 0.9505, screenH * 0.6296, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Spawnar dentro Veiculos\n/vx ID ou NOME", screenW * 0.7932, screenH * 0.4426, screenW * 0.9505, screenH * 0.5019, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Troca Veiculos dentro dele\n/cv", screenW * 0.7932, screenH * 0.7111, screenW * 0.9505, screenH * 0.7704, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Trocar cor Veiculos\n/cc", screenW * 0.7932, screenH * 0.8417, screenW * 0.9505, screenH * 0.9009, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false) end if aba == "aba4" then dxDrawLine((screenW * 0.7828) - 1, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7828) - 1, screenH * 0.9676, screenW * 0.9589, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, screenH * 0.9676, screenW * 0.9589, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.6741, tocolor(1, 0, 0, 209), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.0185, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.3120, screenW * 0.1760, screenH * 0.0093, tocolor(193, 0, 0, 254), false) dxDrawText("ARMAS", screenW * 0.7828, screenH * 0.2935, screenW * 0.9573, screenH * 0.3120, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.3972, screenW * 0.9359, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.3972, screenW * 0.9359, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.3370, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.4750, screenW * 0.9359, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.4750, screenW * 0.9359, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4148, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.5583, screenW * 0.9359, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.5583, screenW * 0.9359, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4981, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.5833) - 1, (screenW * 0.8052) - 1, screenH * 0.6435, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.5833) - 1, (screenW * 0.8052) - 1, (screenH * 0.5833) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.6435, screenW * 0.9359, screenH * 0.6435, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.6435, screenW * 0.9359, (screenH * 0.5833) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.5833, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawText("Pegar Minigun", screenW * 0.8047, screenH * 0.3380, screenW * 0.9359, screenH * 0.3880, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Bazuca", screenW * 0.8047, screenH * 0.4157, screenW * 0.9359, screenH * 0.4657, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Bazuca2", screenW * 0.8052, screenH * 0.5028, screenW * 0.9365, screenH * 0.5528, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Lanca-Chamas", screenW * 0.8052, screenH * 0.5843, screenW * 0.9365, screenH * 0.6343, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Outras armas\n/givearmas NOME", screenW * 0.8000, screenH * 0.6907, screenW * 0.9432, screenH * 0.7870, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) end if aba == "aba5" then dxDrawLine((screenW * 0.7828) - 1, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7828) - 1, screenH * 0.9676, screenW * 0.9589, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, screenH * 0.9676, screenW * 0.9589, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.6741, tocolor(1, 0, 0, 209), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.0185, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.3120, screenW * 0.1760, screenH * 0.0093, tocolor(193, 0, 0, 254), false) dxDrawText("TELEPORTE", screenW * 0.7828, screenH * 0.2935, screenW * 0.9573, screenH * 0.3120, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.3972, screenW * 0.9359, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.3972, screenW * 0.9359, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.3370, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.4750, screenW * 0.9359, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.4750, screenW * 0.9359, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4148, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.5583, screenW * 0.9359, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.5583, screenW * 0.9359, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4981, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawText("TP ID", screenW * 0.8047, screenH * 0.3380, screenW * 0.9359, screenH * 0.3880, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Puxar ID", screenW * 0.8047, screenH * 0.4157, screenW * 0.9359, screenH * 0.4657, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Puxar todos", screenW * 0.8052, screenH * 0.5028, screenW * 0.9365, screenH * 0.5528, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) end end --- function isCursorOnElement ( x, y, w, h ) local mx, my = getCursorPosition () local fullx, fully = guiGetScreenSize () cursorx, cursory = mx*fullx, my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end ---Funçao para abrir e fechar o painel clicando no (Pode alterar a key!) buttonClose = function() if painel == true or aba == "aba2" or aba == "aba3" or aba == "aba4" or aba == "aba5" then aba = "aba1" painel = true end end bindKey('BACKSPACE', "up" , buttonClose) --- function AbrirPainel () if painel == false then addEventHandler ( "onClientRender", root, PainelKing ) painel = true aba = "aba1" showCursor ( true ) else removeEventHandler ( "onClientRender", root, PainelKing ) unbindKey ("BACKSPACE" , "up", Binbutton) painel = false showCursor ( false ) end end addCommandHandler ( "tdgmenu", AbrirPainel) --- function clickPainel1(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.3250, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba2" painel = false end end end addEventHandler("onClientClick", root, clickPainel1) ---- function clickPainel2(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.4778, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba3" painel = false end end end addEventHandler("onClientClick", root, clickPainel2) --- function clickPainel3(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.3991, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba4" painel = false end end end addEventHandler("onClientClick", root, clickPainel3) --- function clickPainel4(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.5546, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba5" painel = false end end end addEventHandler("onClientClick", root, clickPainel4) ---Funçao para quando clicar no botao---- function Botao1 (_,state) if painel == true then if state == "down" then if isCursorOnElement ( screenW * 0.8073, screenH * 0.6315, screenW * 0.1323, screenH * 0.0583 ) then outputChatBox ( "") end end end end addEventHandler ("onClientClick", root, Botao1 ) --- function Botao2 (_,state) if painel == false and aba == "aba2" then if state == "down" then if isCursorOnElement ( screenW * 0.8042, screenH * 0.3343, screenW * 0.1323, screenH * 0.0565 ) then triggerServerEvent("ficarInvisivel", localPlayer) aba = "aba2" painel = false end end end end addEventHandler ("onClientClick", root, Botao2 ) --- function Botao3 (_,state) if painel == true then if state == "down" then if isCursorOnElement ( 0.8042, screenH * 0.3343, screenW * 0.1323, screenH * 0.0565 ) then outputChatBox ("") end end end end addEventHandler ("onClientClick", root, Botao3 ) --- esse e o codigo completo On 20/01/2021 at 00:06, IGUINHO SCR said: --[[PROVAVELMENTE, VOCÊ TENHA ERRADO NA VERIFICAÇÃO DAS ABAS, MANDE O CÓDIGO DA PRIMEIRA ABA POR FAVOR MANO.]-- painel = false aba = "nil" function Botao2 (_,state) if painel == true and aba == "aba2" then if state == "down" then if isCursorOnElement ( screenW * 0.8042, screenH * 0.3333, screenW * 0.9344, screenH * 0.3907 ) then triggerServerEvent("ficarInvisivel", localPlayer) aba = "nil" painel = false end end end end addEventHandler ("onClientClick", root, Botao2 ) esse e o codigo pra quando clickar abrir a segunda aba function clickPainel1(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.3250, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba2" painel = false end end end addEventHandler("onClientClick", root, clickPainel1) Link to comment
LucasST Posted January 21, 2021 Share Posted January 21, 2021 local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1440), (screenH/900) painel = false aba = nil --Dx feito no GuiEditor-- function PainelKing () if aba == "aba1" then dxDrawLine((screenW * 0.7839) - 1, (screenH * 0.2944) - 1, (screenW * 0.7839) - 1, screenH * 0.9704, tocolor(255, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9589, (screenH * 0.2944) - 1, (screenW * 0.7839) - 1, (screenH * 0.2944) - 1, tocolor(255, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.7839) - 1, screenH * 0.9704, screenW * 0.9589, screenH * 0.9704, tocolor(255, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9589, screenH * 0.9704, screenW * 0.9589, (screenH * 0.2944) - 1, tocolor(255, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.7839, screenH * 0.2944, screenW * 0.1750, screenH * 0.6759, tocolor(0, 0, 0, 202), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.2944, screenW * 0.1750, screenH * 0.0130, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.3074, screenW * 0.1750, screenH * 0.0083, tocolor(231, 0, 0, 254), false) dxDrawText("TROPA DO GALO", screenW * 0.7839, screenH * 0.2935, screenW * 0.9589, screenH * 0.3046, tocolor(255, 255, 255, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawImage(screenW * 0.7891, screenH * 0.2954, screenW * 0.0083, screenH * 0.0102, ":admin/client/images/flags/br.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.9453, screenH * 0.2954, screenW * 0.0083, screenH * 0.0102, ":admin/client/images/flags/br.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.3250) - 1, (screenW * 0.8073) - 1, screenH * 0.3833, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.3250) - 1, (screenW * 0.8073) - 1, (screenH * 0.3250) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.3833, screenW * 0.9396, screenH * 0.3833, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.3833, screenW * 0.9396, (screenH * 0.3250) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.3250, screenW * 0.1323, screenH * 0.0583, tocolor(255, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.3991) - 1, (screenW * 0.8073) - 1, screenH * 0.4574, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.3991) - 1, (screenW * 0.8073) - 1, (screenH * 0.3991) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.4574, screenW * 0.9396, screenH * 0.4574, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.4574, screenW * 0.9396, (screenH * 0.3991) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.3991, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.4778) - 1, (screenW * 0.8073) - 1, screenH * 0.5361, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.4778) - 1, (screenW * 0.8073) - 1, (screenH * 0.4778) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.5361, screenW * 0.9396, screenH * 0.5361, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.5361, screenW * 0.9396, (screenH * 0.4778) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.4778, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.5546) - 1, (screenW * 0.8073) - 1, screenH * 0.6130, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.5546) - 1, (screenW * 0.8073) - 1, (screenH * 0.5546) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.6130, screenW * 0.9396, screenH * 0.6130, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.6130, screenW * 0.9396, (screenH * 0.5546) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.5546, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.6315) - 1, (screenW * 0.8073) - 1, screenH * 0.6898, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.6315) - 1, (screenW * 0.8073) - 1, (screenH * 0.6315) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.6898, screenW * 0.9396, screenH * 0.6898, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.6898, screenW * 0.9396, (screenH * 0.6315) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.6315, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.7120) - 1, (screenW * 0.8073) - 1, screenH * 0.7704, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.7120) - 1, (screenW * 0.8073) - 1, (screenH * 0.7120) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.7704, screenW * 0.9396, screenH * 0.7704, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.7704, screenW * 0.9396, (screenH * 0.7120) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.7120, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.7963) - 1, (screenW * 0.8073) - 1, screenH * 0.8546, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.7963) - 1, (screenW * 0.8073) - 1, (screenH * 0.7963) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.8546, screenW * 0.9396, screenH * 0.8546, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.8546, screenW * 0.9396, (screenH * 0.7963) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.7963, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.8750) - 1, (screenW * 0.8073) - 1, screenH * 0.9333, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.8750) - 1, (screenW * 0.8073) - 1, (screenH * 0.8750) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.9333, screenW * 0.9396, screenH * 0.9333, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.9333, screenW * 0.9396, (screenH * 0.8750) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.8750, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.9611, screenW * 0.1750, screenH * 0.0083, tocolor(231, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.9481, screenW * 0.1750, screenH * 0.0130, tocolor(1, 0, 0, 254), false) dxDrawText("By-King021 e Garcia", screenW * 0.7839, screenH * 0.9491, screenW * 0.9589, screenH * 0.9602, tocolor(255, 255, 255, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("Player", screenW * 0.8089, screenH * 0.3278, screenW * 0.9370, screenH * 0.3787, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Armas", screenW * 0.8073, screenH * 0.4028, screenW * 0.9354, screenH * 0.4537, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Veiculos", screenW * 0.8094, screenH * 0.4815, screenW * 0.9375, screenH * 0.5324, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Teleporte", screenW * 0.8094, screenH * 0.5583, screenW * 0.9375, screenH * 0.6093, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("PVP", screenW * 0.8094, screenH * 0.6352, screenW * 0.9375, screenH * 0.6861, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Virar admin", screenW * 0.8094, screenH * 0.7157, screenW * 0.9375, screenH * 0.7667, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Anuncio", screenW * 0.8094, screenH * 0.8000, screenW * 0.9375, screenH * 0.8509, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Explodir todos os veiculos", screenW * 0.8094, screenH * 0.8787, screenW * 0.9375, screenH * 0.9296, tocolor(255, 255, 255, 255), 0.80, "pricedown", "center", "center", false, false, false, false, false) elseif aba == "aba2" then dxDrawLine((screenW * 0.7833) - 1, (screenH * 0.2944) - 1, (screenW * 0.7833) - 1, screenH * 0.9676, tocolor(143, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, (screenH * 0.2944) - 1, (screenW * 0.7833) - 1, (screenH * 0.2944) - 1, tocolor(143, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7833) - 1, screenH * 0.9676, screenW * 0.9583, screenH * 0.9676, tocolor(143, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, screenH * 0.9676, screenW * 0.9583, (screenH * 0.2944) - 1, tocolor(143, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7833, screenH * 0.2944, screenW * 0.1750, screenH * 0.6731, tocolor(1, 0, 0, 170), false) dxDrawRectangle(screenW * 0.7833, screenH * 0.2944, screenW * 0.1750, screenH * 0.0176, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7833, screenH * 0.3120, screenW * 0.1750, screenH * 0.0093, tocolor(255, 3, 3, 254), false) dxDrawText("PLAYER", screenW * 0.7828, screenH * 0.2935, screenW * 0.9583, screenH * 0.3120, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.7833, screenH * 0.9583, screenW * 0.1750, screenH * 0.0093, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.3343) - 1, (screenW * 0.8042) - 1, screenH * 0.3907, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.3343) - 1, (screenW * 0.8042) - 1, (screenH * 0.3343) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.3907, screenW * 0.9365, screenH * 0.3907, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.3907, screenW * 0.9365, (screenH * 0.3343) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.3343, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.6009) - 1, (screenW * 0.8042) - 1, screenH * 0.6574, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.6009) - 1, (screenW * 0.8042) - 1, (screenH * 0.6009) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.6574, screenW * 0.9365, screenH * 0.6574, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.6574, screenW * 0.9365, (screenH * 0.6009) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.6009, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.5102) - 1, (screenW * 0.8042) - 1, screenH * 0.5667, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.5102) - 1, (screenW * 0.8042) - 1, (screenH * 0.5102) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.5667, screenW * 0.9365, screenH * 0.5667, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.5667, screenW * 0.9365, (screenH * 0.5102) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.5102, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.4204) - 1, (screenW * 0.8042) - 1, screenH * 0.4769, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.4204) - 1, (screenW * 0.8042) - 1, (screenH * 0.4204) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.4769, screenW * 0.9365, screenH * 0.4769, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.4769, screenW * 0.9365, (screenH * 0.4204) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.4204, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.7778) - 1, (screenW * 0.8042) - 1, screenH * 0.8343, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.7778) - 1, (screenW * 0.8042) - 1, (screenH * 0.7778) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.8343, screenW * 0.9365, screenH * 0.8343, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.8343, screenW * 0.9365, (screenH * 0.7778) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.7778, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.6907) - 1, (screenW * 0.8042) - 1, screenH * 0.7472, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.6907) - 1, (screenW * 0.8042) - 1, (screenH * 0.6907) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.7472, screenW * 0.9365, screenH * 0.7472, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.7472, screenW * 0.9365, (screenH * 0.6907) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.6907, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.8565) - 1, (screenW * 0.8042) - 1, screenH * 0.9130, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.8565) - 1, (screenW * 0.8042) - 1, (screenH * 0.8565) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.9130, screenW * 0.9365, screenH * 0.9130, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.9130, screenW * 0.9365, (screenH * 0.8565) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.8565, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawText("TROPA DO GALO", screenW * 0.7833, screenH * 0.9398, screenW * 0.9589, screenH * 0.9583, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("invisivel", screenW * 0.8042, screenH * 0.3333, screenW * 0.9344, screenH * 0.3907, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Dinheiro pra todos", screenW * 0.8042, screenH * 0.6907, screenW * 0.9344, screenH * 0.7481, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Dinheiro ", screenW * 0.8042, screenH * 0.6000, screenW * 0.9344, screenH * 0.6574, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Voar", screenW * 0.8042, screenH * 0.5093, screenW * 0.9344, screenH * 0.5667, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Trocar Skin", screenW * 0.8042, screenH * 0.4204, screenW * 0.9344, screenH * 0.4778, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Colete", screenW * 0.8042, screenH * 0.8565, screenW * 0.9344, screenH * 0.9139, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Vida", screenW * 0.8042, screenH * 0.7769, screenW * 0.9344, screenH * 0.8343, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false)-- body elseif aba == "aba3" then dxDrawLine((screenW * 0.7823) - 1, (screenH * 0.2917) - 1, (screenW * 0.7823) - 1, screenH * 0.9657, tocolor(223, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, (screenH * 0.2917) - 1, (screenW * 0.7823) - 1, (screenH * 0.2917) - 1, tocolor(223, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7823) - 1, screenH * 0.9657, screenW * 0.9583, screenH * 0.9657, tocolor(223, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, screenH * 0.9657, screenW * 0.9583, (screenH * 0.2917) - 1, tocolor(223, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7823, screenH * 0.2917, screenW * 0.1760, screenH * 0.6741, tocolor(0, 0, 0, 196), false) dxDrawRectangle(screenW * 0.7823, screenH * 0.2917, screenW * 0.1755, screenH * 0.0148, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.3065, screenW * 0.1750, screenH * 0.0093, tocolor(213, 0, 0, 254), false) dxDrawText("Veiculos", screenW * 0.7823, screenH * 0.2917, screenW * 0.9578, screenH * 0.3065, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Para Criar Veiculos\n/veh ID ou NOME", screenW * 0.7932, screenH * 0.3269, screenW * 0.9505, screenH * 0.3861, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Destruir Veiculos\n/dv ", screenW * 0.7932, screenH * 0.5704, screenW * 0.9505, screenH * 0.6296, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Spawnar dentro Veiculos\n/vx ID ou NOME", screenW * 0.7932, screenH * 0.4426, screenW * 0.9505, screenH * 0.5019, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Troca Veiculos dentro dele\n/cv", screenW * 0.7932, screenH * 0.7111, screenW * 0.9505, screenH * 0.7704, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Trocar cor Veiculos\n/cc", screenW * 0.7932, screenH * 0.8417, screenW * 0.9505, screenH * 0.9009, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false elseif aba == "aba4" then dxDrawLine((screenW * 0.7828) - 1, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7828) - 1, screenH * 0.9676, screenW * 0.9589, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, screenH * 0.9676, screenW * 0.9589, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.6741, tocolor(1, 0, 0, 209), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.0185, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.3120, screenW * 0.1760, screenH * 0.0093, tocolor(193, 0, 0, 254), false) dxDrawText("ARMAS", screenW * 0.7828, screenH * 0.2935, screenW * 0.9573, screenH * 0.3120, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.3972, screenW * 0.9359, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.3972, screenW * 0.9359, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.3370, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.4750, screenW * 0.9359, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.4750, screenW * 0.9359, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4148, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.5583, screenW * 0.9359, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.5583, screenW * 0.9359, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4981, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.5833) - 1, (screenW * 0.8052) - 1, screenH * 0.6435, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.5833) - 1, (screenW * 0.8052) - 1, (screenH * 0.5833) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.6435, screenW * 0.9359, screenH * 0.6435, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.6435, screenW * 0.9359, (screenH * 0.5833) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.5833, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawText("Pegar Minigun", screenW * 0.8047, screenH * 0.3380, screenW * 0.9359, screenH * 0.3880, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Bazuca", screenW * 0.8047, screenH * 0.4157, screenW * 0.9359, screenH * 0.4657, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Bazuca2", screenW * 0.8052, screenH * 0.5028, screenW * 0.9365, screenH * 0.5528, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Lanca-Chamas", screenW * 0.8052, screenH * 0.5843, screenW * 0.9365, screenH * 0.6343, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Outras armas\n/givearmas NOME", screenW * 0.8000, screenH * 0.6907, screenW * 0.9432, screenH * 0.7870, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) elseif aba == "aba5" then dxDrawLine((screenW * 0.7828) - 1, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7828) - 1, screenH * 0.9676, screenW * 0.9589, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, screenH * 0.9676, screenW * 0.9589, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.6741, tocolor(1, 0, 0, 209), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.0185, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.3120, screenW * 0.1760, screenH * 0.0093, tocolor(193, 0, 0, 254), false) dxDrawText("TELEPORTE", screenW * 0.7828, screenH * 0.2935, screenW * 0.9573, screenH * 0.3120, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.3972, screenW * 0.9359, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.3972, screenW * 0.9359, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.3370, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.4750, screenW * 0.9359, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.4750, screenW * 0.9359, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4148, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.5583, screenW * 0.9359, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.5583, screenW * 0.9359, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4981, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawText("TP ID", screenW * 0.8047, screenH * 0.3380, screenW * 0.9359, screenH * 0.3880, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Puxar ID", screenW * 0.8047, screenH * 0.4157, screenW * 0.9359, screenH * 0.4657, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Puxar todos", screenW * 0.8052, screenH * 0.5028, screenW * 0.9365, screenH * 0.5528, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) end end --- ---Funçao para abrir e fechar o painel clicando no (Pode alterar a key!) function buttonClose() if painel == true then aba = "aba1" end end bindKey('backspace', "down" , buttonClose) --- function AbrirPainel () if painel == false then addEventHandler ( "onClientRender", root, PainelKing ) painel = true aba = "aba1" showCursor ( true ) else removeEventHandler ( "onClientRender", root, PainelKing ) painel = false showCursor ( false ) end end addCommandHandler ( "tdgmenu", AbrirPainel) --- function clickPainel1(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.3250, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba2" painel = false end end end addEventHandler("onClientClick", root, clickPainel1) ---- function clickPainel2(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.4778, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba3" painel = false end end end addEventHandler("onClientClick", root, clickPainel2) --- function clickPainel3(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.3991, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba4" painel = false end end end addEventHandler("onClientClick", root, clickPainel3) --- function clickPainel4(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.5546, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba5" painel = false end end end addEventHandler("onClientClick", root, clickPainel4) ---Funçao para quando clicar no botao---- function Botao1 (_,state) if painel == true then if state == "down" then if isCursorOnElement ( screenW * 0.8073, screenH * 0.6315, screenW * 0.1323, screenH * 0.0583 ) then outputChatBox ( "") end end end end addEventHandler ("onClientClick", root, Botao1 ) --- function Botao2 (_,state) if painel == false and aba == "aba2" then if state == "down" then if isCursorOnElement ( screenW * 0.8042, screenH * 0.3343, screenW * 0.1323, screenH * 0.0565 ) then triggerServerEvent("ficarInvisivel", localPlayer) aba = "aba2" painel = false end end end end addEventHandler ("onClientClick", root, Botao2 ) --- function Botao3 (_,state) if painel == true then if state == "down" then if isCursorOnElement ( 0.8042, screenH * 0.3343, screenW * 0.1323, screenH * 0.0565 ) then outputChatBox ("") end end end end addEventHandler ("onClientClick", root, Botao3 ) --- function isCursorOnElement ( x, y, w, h ) local mx, my = getCursorPosition () local fullx, fully = guiGetScreenSize () cursorx, cursory = mx*fullx, my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end Fiz uma organização para você melhor, e tome cuidado com esses painéis. Link to comment
King021 Posted January 21, 2021 Author Share Posted January 21, 2021 40 minutes ago, LucasST said: local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1440), (screenH/900) painel = false aba = nil --Dx feito no GuiEditor-- function PainelKing () if aba == "aba1" then dxDrawLine((screenW * 0.7839) - 1, (screenH * 0.2944) - 1, (screenW * 0.7839) - 1, screenH * 0.9704, tocolor(255, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9589, (screenH * 0.2944) - 1, (screenW * 0.7839) - 1, (screenH * 0.2944) - 1, tocolor(255, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.7839) - 1, screenH * 0.9704, screenW * 0.9589, screenH * 0.9704, tocolor(255, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.9589, screenH * 0.9704, screenW * 0.9589, (screenH * 0.2944) - 1, tocolor(255, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.7839, screenH * 0.2944, screenW * 0.1750, screenH * 0.6759, tocolor(0, 0, 0, 202), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.2944, screenW * 0.1750, screenH * 0.0130, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.3074, screenW * 0.1750, screenH * 0.0083, tocolor(231, 0, 0, 254), false) dxDrawText("TROPA DO GALO", screenW * 0.7839, screenH * 0.2935, screenW * 0.9589, screenH * 0.3046, tocolor(255, 255, 255, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawImage(screenW * 0.7891, screenH * 0.2954, screenW * 0.0083, screenH * 0.0102, ":admin/client/images/flags/br.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.9453, screenH * 0.2954, screenW * 0.0083, screenH * 0.0102, ":admin/client/images/flags/br.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.3250) - 1, (screenW * 0.8073) - 1, screenH * 0.3833, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.3250) - 1, (screenW * 0.8073) - 1, (screenH * 0.3250) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.3833, screenW * 0.9396, screenH * 0.3833, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.3833, screenW * 0.9396, (screenH * 0.3250) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.3250, screenW * 0.1323, screenH * 0.0583, tocolor(255, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.3991) - 1, (screenW * 0.8073) - 1, screenH * 0.4574, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.3991) - 1, (screenW * 0.8073) - 1, (screenH * 0.3991) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.4574, screenW * 0.9396, screenH * 0.4574, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.4574, screenW * 0.9396, (screenH * 0.3991) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.3991, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.4778) - 1, (screenW * 0.8073) - 1, screenH * 0.5361, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.4778) - 1, (screenW * 0.8073) - 1, (screenH * 0.4778) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.5361, screenW * 0.9396, screenH * 0.5361, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.5361, screenW * 0.9396, (screenH * 0.4778) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.4778, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.5546) - 1, (screenW * 0.8073) - 1, screenH * 0.6130, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.5546) - 1, (screenW * 0.8073) - 1, (screenH * 0.5546) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.6130, screenW * 0.9396, screenH * 0.6130, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.6130, screenW * 0.9396, (screenH * 0.5546) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.5546, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.6315) - 1, (screenW * 0.8073) - 1, screenH * 0.6898, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.6315) - 1, (screenW * 0.8073) - 1, (screenH * 0.6315) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.6898, screenW * 0.9396, screenH * 0.6898, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.6898, screenW * 0.9396, (screenH * 0.6315) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.6315, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.7120) - 1, (screenW * 0.8073) - 1, screenH * 0.7704, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.7120) - 1, (screenW * 0.8073) - 1, (screenH * 0.7120) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.7704, screenW * 0.9396, screenH * 0.7704, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.7704, screenW * 0.9396, (screenH * 0.7120) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.7120, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.7963) - 1, (screenW * 0.8073) - 1, screenH * 0.8546, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.7963) - 1, (screenW * 0.8073) - 1, (screenH * 0.7963) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.8546, screenW * 0.9396, screenH * 0.8546, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.8546, screenW * 0.9396, (screenH * 0.7963) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.7963, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawLine((screenW * 0.8073) - 1, (screenH * 0.8750) - 1, (screenW * 0.8073) - 1, screenH * 0.9333, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, (screenH * 0.8750) - 1, (screenW * 0.8073) - 1, (screenH * 0.8750) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8073) - 1, screenH * 0.9333, screenW * 0.9396, screenH * 0.9333, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9396, screenH * 0.9333, screenW * 0.9396, (screenH * 0.8750) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8073, screenH * 0.8750, screenW * 0.1323, screenH * 0.0583, tocolor(135, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.9611, screenW * 0.1750, screenH * 0.0083, tocolor(231, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7839, screenH * 0.9481, screenW * 0.1750, screenH * 0.0130, tocolor(1, 0, 0, 254), false) dxDrawText("By-King021 e Garcia", screenW * 0.7839, screenH * 0.9491, screenW * 0.9589, screenH * 0.9602, tocolor(255, 255, 255, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("Player", screenW * 0.8089, screenH * 0.3278, screenW * 0.9370, screenH * 0.3787, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Armas", screenW * 0.8073, screenH * 0.4028, screenW * 0.9354, screenH * 0.4537, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Veiculos", screenW * 0.8094, screenH * 0.4815, screenW * 0.9375, screenH * 0.5324, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Teleporte", screenW * 0.8094, screenH * 0.5583, screenW * 0.9375, screenH * 0.6093, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("PVP", screenW * 0.8094, screenH * 0.6352, screenW * 0.9375, screenH * 0.6861, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Virar admin", screenW * 0.8094, screenH * 0.7157, screenW * 0.9375, screenH * 0.7667, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Anuncio", screenW * 0.8094, screenH * 0.8000, screenW * 0.9375, screenH * 0.8509, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Explodir todos os veiculos", screenW * 0.8094, screenH * 0.8787, screenW * 0.9375, screenH * 0.9296, tocolor(255, 255, 255, 255), 0.80, "pricedown", "center", "center", false, false, false, false, false) elseif aba == "aba2" then dxDrawLine((screenW * 0.7833) - 1, (screenH * 0.2944) - 1, (screenW * 0.7833) - 1, screenH * 0.9676, tocolor(143, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, (screenH * 0.2944) - 1, (screenW * 0.7833) - 1, (screenH * 0.2944) - 1, tocolor(143, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7833) - 1, screenH * 0.9676, screenW * 0.9583, screenH * 0.9676, tocolor(143, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, screenH * 0.9676, screenW * 0.9583, (screenH * 0.2944) - 1, tocolor(143, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7833, screenH * 0.2944, screenW * 0.1750, screenH * 0.6731, tocolor(1, 0, 0, 170), false) dxDrawRectangle(screenW * 0.7833, screenH * 0.2944, screenW * 0.1750, screenH * 0.0176, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7833, screenH * 0.3120, screenW * 0.1750, screenH * 0.0093, tocolor(255, 3, 3, 254), false) dxDrawText("PLAYER", screenW * 0.7828, screenH * 0.2935, screenW * 0.9583, screenH * 0.3120, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.7833, screenH * 0.9583, screenW * 0.1750, screenH * 0.0093, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.3343) - 1, (screenW * 0.8042) - 1, screenH * 0.3907, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.3343) - 1, (screenW * 0.8042) - 1, (screenH * 0.3343) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.3907, screenW * 0.9365, screenH * 0.3907, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.3907, screenW * 0.9365, (screenH * 0.3343) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.3343, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.6009) - 1, (screenW * 0.8042) - 1, screenH * 0.6574, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.6009) - 1, (screenW * 0.8042) - 1, (screenH * 0.6009) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.6574, screenW * 0.9365, screenH * 0.6574, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.6574, screenW * 0.9365, (screenH * 0.6009) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.6009, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.5102) - 1, (screenW * 0.8042) - 1, screenH * 0.5667, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.5102) - 1, (screenW * 0.8042) - 1, (screenH * 0.5102) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.5667, screenW * 0.9365, screenH * 0.5667, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.5667, screenW * 0.9365, (screenH * 0.5102) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.5102, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.4204) - 1, (screenW * 0.8042) - 1, screenH * 0.4769, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.4204) - 1, (screenW * 0.8042) - 1, (screenH * 0.4204) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.4769, screenW * 0.9365, screenH * 0.4769, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.4769, screenW * 0.9365, (screenH * 0.4204) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.4204, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.7778) - 1, (screenW * 0.8042) - 1, screenH * 0.8343, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.7778) - 1, (screenW * 0.8042) - 1, (screenH * 0.7778) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.8343, screenW * 0.9365, screenH * 0.8343, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.8343, screenW * 0.9365, (screenH * 0.7778) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.7778, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.6907) - 1, (screenW * 0.8042) - 1, screenH * 0.7472, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.6907) - 1, (screenW * 0.8042) - 1, (screenH * 0.6907) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.7472, screenW * 0.9365, screenH * 0.7472, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.7472, screenW * 0.9365, (screenH * 0.6907) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.6907, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawLine((screenW * 0.8042) - 1, (screenH * 0.8565) - 1, (screenW * 0.8042) - 1, screenH * 0.9130, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, (screenH * 0.8565) - 1, (screenW * 0.8042) - 1, (screenH * 0.8565) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawLine((screenW * 0.8042) - 1, screenH * 0.9130, screenW * 0.9365, screenH * 0.9130, tocolor(255, 255, 255, 254), 1, false) dxDrawLine(screenW * 0.9365, screenH * 0.9130, screenW * 0.9365, (screenH * 0.8565) - 1, tocolor(255, 255, 255, 254), 1, false) dxDrawRectangle(screenW * 0.8042, screenH * 0.8565, screenW * 0.1323, screenH * 0.0565, tocolor(255, 3, 3, 254), false) dxDrawText("TROPA DO GALO", screenW * 0.7833, screenH * 0.9398, screenW * 0.9589, screenH * 0.9583, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("invisivel", screenW * 0.8042, screenH * 0.3333, screenW * 0.9344, screenH * 0.3907, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Dinheiro pra todos", screenW * 0.8042, screenH * 0.6907, screenW * 0.9344, screenH * 0.7481, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Dinheiro ", screenW * 0.8042, screenH * 0.6000, screenW * 0.9344, screenH * 0.6574, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Voar", screenW * 0.8042, screenH * 0.5093, screenW * 0.9344, screenH * 0.5667, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Trocar Skin", screenW * 0.8042, screenH * 0.4204, screenW * 0.9344, screenH * 0.4778, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Colete", screenW * 0.8042, screenH * 0.8565, screenW * 0.9344, screenH * 0.9139, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Vida", screenW * 0.8042, screenH * 0.7769, screenW * 0.9344, screenH * 0.8343, tocolor(255, 255, 255, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false)-- body elseif aba == "aba3" then dxDrawLine((screenW * 0.7823) - 1, (screenH * 0.2917) - 1, (screenW * 0.7823) - 1, screenH * 0.9657, tocolor(223, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, (screenH * 0.2917) - 1, (screenW * 0.7823) - 1, (screenH * 0.2917) - 1, tocolor(223, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7823) - 1, screenH * 0.9657, screenW * 0.9583, screenH * 0.9657, tocolor(223, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9583, screenH * 0.9657, screenW * 0.9583, (screenH * 0.2917) - 1, tocolor(223, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7823, screenH * 0.2917, screenW * 0.1760, screenH * 0.6741, tocolor(0, 0, 0, 196), false) dxDrawRectangle(screenW * 0.7823, screenH * 0.2917, screenW * 0.1755, screenH * 0.0148, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.3065, screenW * 0.1750, screenH * 0.0093, tocolor(213, 0, 0, 254), false) dxDrawText("Veiculos", screenW * 0.7823, screenH * 0.2917, screenW * 0.9578, screenH * 0.3065, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Para Criar Veiculos\n/veh ID ou NOME", screenW * 0.7932, screenH * 0.3269, screenW * 0.9505, screenH * 0.3861, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Destruir Veiculos\n/dv ", screenW * 0.7932, screenH * 0.5704, screenW * 0.9505, screenH * 0.6296, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Spawnar dentro Veiculos\n/vx ID ou NOME", screenW * 0.7932, screenH * 0.4426, screenW * 0.9505, screenH * 0.5019, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Troca Veiculos dentro dele\n/cv", screenW * 0.7932, screenH * 0.7111, screenW * 0.9505, screenH * 0.7704, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "center", "top", false, false, false, false, false) dxDrawText("Trocar cor Veiculos\n/cc", screenW * 0.7932, screenH * 0.8417, screenW * 0.9505, screenH * 0.9009, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false elseif aba == "aba4" then dxDrawLine((screenW * 0.7828) - 1, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7828) - 1, screenH * 0.9676, screenW * 0.9589, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, screenH * 0.9676, screenW * 0.9589, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.6741, tocolor(1, 0, 0, 209), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.0185, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.3120, screenW * 0.1760, screenH * 0.0093, tocolor(193, 0, 0, 254), false) dxDrawText("ARMAS", screenW * 0.7828, screenH * 0.2935, screenW * 0.9573, screenH * 0.3120, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.3972, screenW * 0.9359, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.3972, screenW * 0.9359, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.3370, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.4750, screenW * 0.9359, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.4750, screenW * 0.9359, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4148, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.5583, screenW * 0.9359, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.5583, screenW * 0.9359, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4981, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.5833) - 1, (screenW * 0.8052) - 1, screenH * 0.6435, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.5833) - 1, (screenW * 0.8052) - 1, (screenH * 0.5833) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.6435, screenW * 0.9359, screenH * 0.6435, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.6435, screenW * 0.9359, (screenH * 0.5833) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.5833, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawText("Pegar Minigun", screenW * 0.8047, screenH * 0.3380, screenW * 0.9359, screenH * 0.3880, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Bazuca", screenW * 0.8047, screenH * 0.4157, screenW * 0.9359, screenH * 0.4657, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Bazuca2", screenW * 0.8052, screenH * 0.5028, screenW * 0.9365, screenH * 0.5528, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Lanca-Chamas", screenW * 0.8052, screenH * 0.5843, screenW * 0.9365, screenH * 0.6343, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Pegar Outras armas\n/givearmas NOME", screenW * 0.8000, screenH * 0.6907, screenW * 0.9432, screenH * 0.7870, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) elseif aba == "aba5" then dxDrawLine((screenW * 0.7828) - 1, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, (screenH * 0.2935) - 1, (screenW * 0.7828) - 1, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawLine((screenW * 0.7828) - 1, screenH * 0.9676, screenW * 0.9589, screenH * 0.9676, tocolor(247, 0, 0, 254), 1, false) dxDrawLine(screenW * 0.9589, screenH * 0.9676, screenW * 0.9589, (screenH * 0.2935) - 1, tocolor(247, 0, 0, 254), 1, false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.6741, tocolor(1, 0, 0, 209), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.2935, screenW * 0.1760, screenH * 0.0185, tocolor(1, 0, 0, 254), false) dxDrawRectangle(screenW * 0.7828, screenH * 0.3120, screenW * 0.1760, screenH * 0.0093, tocolor(193, 0, 0, 254), false) dxDrawText("TELEPORTE", screenW * 0.7828, screenH * 0.2935, screenW * 0.9573, screenH * 0.3120, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.3370) - 1, (screenW * 0.8052) - 1, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.3972, screenW * 0.9359, screenH * 0.3972, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.3972, screenW * 0.9359, (screenH * 0.3370) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.3370, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4148) - 1, (screenW * 0.8052) - 1, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.4750, screenW * 0.9359, screenH * 0.4750, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.4750, screenW * 0.9359, (screenH * 0.4148) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4148, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawLine((screenW * 0.8052) - 1, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, (screenH * 0.4981) - 1, (screenW * 0.8052) - 1, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawLine((screenW * 0.8052) - 1, screenH * 0.5583, screenW * 0.9359, screenH * 0.5583, tocolor(255, 254, 254, 254), 1, false) dxDrawLine(screenW * 0.9359, screenH * 0.5583, screenW * 0.9359, (screenH * 0.4981) - 1, tocolor(255, 254, 254, 254), 1, false) dxDrawRectangle(screenW * 0.8052, screenH * 0.4981, screenW * 0.1307, screenH * 0.0602, tocolor(193, 0, 0, 254), false) dxDrawText("TP ID", screenW * 0.8047, screenH * 0.3380, screenW * 0.9359, screenH * 0.3880, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Puxar ID", screenW * 0.8047, screenH * 0.4157, screenW * 0.9359, screenH * 0.4657, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Puxar todos", screenW * 0.8052, screenH * 0.5028, screenW * 0.9365, screenH * 0.5528, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) end end --- ---Funçao para abrir e fechar o painel clicando no (Pode alterar a key!) function buttonClose() if painel == true then aba = "aba1" end end bindKey('backspace', "down" , buttonClose) --- function AbrirPainel () if painel == false then addEventHandler ( "onClientRender", root, PainelKing ) painel = true aba = "aba1" showCursor ( true ) else removeEventHandler ( "onClientRender", root, PainelKing ) painel = false showCursor ( false ) end end addCommandHandler ( "tdgmenu", AbrirPainel) --- function clickPainel1(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.3250, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba2" painel = false end end end addEventHandler("onClientClick", root, clickPainel1) ---- function clickPainel2(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.4778, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba3" painel = false end end end addEventHandler("onClientClick", root, clickPainel2) --- function clickPainel3(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.3991, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba4" painel = false end end end addEventHandler("onClientClick", root, clickPainel3) --- function clickPainel4(button, state) if painel == true and aba == "aba1" and button == "left" and state == "down" then -- se painel 1 é true(ative), então quando eu tiver usando ele o painel vip 2 é false if isCursorOnElement(screenW * 0.8073, screenH * 0.5546, screenW * 0.1323, screenH * 0.0583) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som aba = "aba5" painel = false end end end addEventHandler("onClientClick", root, clickPainel4) ---Funçao para quando clicar no botao---- function Botao1 (_,state) if painel == true then if state == "down" then if isCursorOnElement ( screenW * 0.8073, screenH * 0.6315, screenW * 0.1323, screenH * 0.0583 ) then outputChatBox ( "") end end end end addEventHandler ("onClientClick", root, Botao1 ) --- function Botao2 (_,state) if painel == false and aba == "aba2" then if state == "down" then if isCursorOnElement ( screenW * 0.8042, screenH * 0.3343, screenW * 0.1323, screenH * 0.0565 ) then triggerServerEvent("ficarInvisivel", localPlayer) aba = "aba2" painel = false end end end end addEventHandler ("onClientClick", root, Botao2 ) --- function Botao3 (_,state) if painel == true then if state == "down" then if isCursorOnElement ( 0.8042, screenH * 0.3343, screenW * 0.1323, screenH * 0.0565 ) then outputChatBox ("") end end end end addEventHandler ("onClientClick", root, Botao3 ) --- function isCursorOnElement ( x, y, w, h ) local mx, my = getCursorPosition () local fullx, fully = guiGetScreenSize () cursorx, cursory = mx*fullx, my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end Fiz uma organização para você melhor, e tome cuidado com esses painéis. mano desculpaa veio eu peguei algumas coisas da net ai n olho pq quero terminar o painel ai dps boto os script desculpa essa porra parece mesmo um mod menu kkkk. vou comecar a olhar antes de bota no painel.mano eu to com uma cara de cu agr dps q vi os bgl de invasao etc 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