King021 Posted January 18, 2021 Share Posted January 18, 2021 meu painel n abre e quero fazer a segunda aba meu script ta assim local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1440), (screenH/900) painel = false --Dx feito no GuiEditor-- function PainelKing () 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(135, 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) function PainelKing2 () 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 ---Funçao para abrir e fechar o painel clicando no F2 (Pode alterar a key!) function AbrirPainel () if painel == false then addEventHandler ( "onClientRender", root, PainelKing ) painel = true showCursor ( true ) else removeEventHandler ( "onClientRender", root, PainelKing ) painel = false showCursor ( false ) end end addCommandHandler ( "king", AbrirPainel) --- function clickPainel1(button, state) if PainelKing == true and PainelKing2 == false 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 cursorPosition(screenW * 0.8089, screenH * 0.3278, screenW * 0.9370, screenH * 0.3787) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som PainelKing = false PainelKing2 = true addEventHandler("onClientRender", root, PainelKing2) -- function do dx removeEventHandler("onClientRender", root, PainelKing) -- function do dx end end ---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 ( "Digite /hackv2 e aperte 0") end end end end addEventHandler ("onClientClick", root, Botao1 ) --- ------Ignone Abaixo---------- 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 --- Link to comment
Other Languages Moderators Lord Henry Posted January 18, 2021 Other Languages Moderators Share Posted January 18, 2021 Faltou um end para fechar o escopo da função PainelKing() 1 Link to comment
King021 Posted January 21, 2021 Author Share Posted January 21, 2021 On 17/01/2021 at 22:59, King021 said: meu painel n abre e quero fazer a segunda aba meu script ta assim local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1440), (screenH/900) painel = false --Dx feito no GuiEditor-- function PainelKing () 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(135, 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) function PainelKing2 () 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 ---Funçao para abrir e fechar o painel clicando no F2 (Pode alterar a key!) function AbrirPainel () if painel == false then addEventHandler ( "onClientRender", root, PainelKing ) painel = true showCursor ( true ) else removeEventHandler ( "onClientRender", root, PainelKing ) painel = false showCursor ( false ) end end addCommandHandler ( "king", AbrirPainel) --- function clickPainel1(button, state) if PainelKing == true and PainelKing2 == false 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 cursorPosition(screenW * 0.8089, screenH * 0.3278, screenW * 0.9370, screenH * 0.3787) then -- local pra clicar pra aparecer outra aba playSoundFrontEnd(3) -- som PainelKing = false PainelKing2 = true addEventHandler("onClientRender", root, PainelKing2) -- function do dx removeEventHandler("onClientRender", root, PainelKing) -- function do dx end end ---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 ) --- ------Ignone Abaixo---------- 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 --- 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