Jump to content

Painel Não Abre


Recommended Posts

Pessoal estou com o seguinte problema , meu painel painel vip não abre de jeito nenhum, já mexi em tudo dos codigos e achei nenhum erro , ( Não Aparece Nada No Console )

local dxfont0_PetitFormalScript = dxCreateFont("fonts/font.ttf", 10)

pvip = false
function Entrada ()
        dxDrawRectangle(485, 250, 333, 274, tocolor(255, 254, 254, 42), false)
        dxDrawRectangle(485, 250, 333, 40, tocolor(254, 178, 57, 254), false)
        dxDrawText("PAINEL VIP", 486 + 1, 254 + 1, 812 + 1, 285 + 1, tocolor(0, 0, 0, 255), 1.50, "sans", "center", "center", false, false, false, false, false)
        dxDrawText("PAINEL VIP", 486, 254, 812, 285, tocolor(254, 187, 3, 254), 1.50, "sans", "center", "center", false, false, false, false, false)
        dxDrawText("JOGADOR", 485 + 1, 300 + 1, 636 + 1, 346 + 1, tocolor(0, 0, 0, 255), 1.30, "default", "center", "center", false, false, false, false, false)
        dxDrawText("JOGADOR", 485, 300, 636, 346, tocolor(254, 254, 254, 254), 1.30, "default", "center", "center", false, false, false, false, false)
        dxDrawText("VEICULO", 657 + 1, 300 + 1, 808 + 1, 346 + 1, tocolor(0, 0, 0, 255), 1.30, "default", "center", "center", false, false, false, false, false)
        dxDrawText("VEICULO", 657, 300, 808, 346, tocolor(254, 254, 254, 254), 1.30, "default", "center", "center", false, false, false, false, false)
		--BOTAO--
        dxDrawRectangle(514, 351, 98, 86, tocolor(255, 255, 255, 255), false)
		---------
		--BOTAO--
        dxDrawRectangle(684, 351, 98, 86, tocolor(255, 255, 255, 255), false)
		---------
        dxDrawText("painel", 629, 508, 684, 524, tocolor(253, 174, 46, 254), 1.00, "default-bold", "center", "center", false, false, false, false, false)
end

Jogadors = false
    function Jogador ()
        dxDrawRectangle(518, 236, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawRectangle(518, 276, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawRectangle(518, 316, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawRectangle(518, 356, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawRectangle(518, 396, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawText("Sem Cabeça", 518 + 1, 236 + 1, 680 + 1, 266 + 1, tocolor(0, 0, 0, 255), 1.00, dxfont0_PetitFormalScript, "center", "center", false, false, false, false, false)
        dxDrawText("Sem Cabeça", 518, 236, 680, 266, tocolor(255, 255, 255, 255), 1.00, dxfont0_PetitFormalScript, "center", "center", false, false, false, false, false)
		--BOTAO--
        dxDrawText("ON", 714 + 1, 241 + 1, 751 + 1, 261 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("ON", 714, 241, 751, 261, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("NORMAL", 662 + 1, 281 + 1, 743 + 1, 301 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("NORMAL", 662, 281, 743, 301, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
        dxDrawText("Velocidade", 533 + 1, 276 + 1, 655 + 1, 306 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Velocidade", 533, 276, 655, 306, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        --dxDrawText("Velocidade", 518 + 1, 316 + 1, 680 + 1, 346 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        --dxDrawText("Velocidade", 518, 316, 680, 346, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		--BOTAO--
        dxDrawText("OFF", 775 + 1, 241 + 1, 812 + 1, 261 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("OFF", 775, 241, 812, 261, tocolor(185, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("ON", 714 + 1, 320 + 1, 751 + 1, 340 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("ON", 714, 320, 751, 340, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("OFF", 776 + 1, 320 + 1, 813 + 1, 340 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("OFF", 776, 320, 813, 340, tocolor(185, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("Pegar ", 714 + 1, 360 + 1, 751 + 1, 380 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Pegar ", 714, 360, 751, 380, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("X1", 753 + 1, 281 + 1, 778 + 1, 301 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("X1", 753, 281, 778, 301, tocolor(185, 147, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("X3", 788 + 1, 281 + 1, 813 + 1, 301 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("X3", 788, 281, 813, 301, tocolor(185, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
        dxDrawText("Skin", 518 + 1, 356 + 1, 680 + 1, 386 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Skin", 518, 356, 680, 386, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		--BOTAO--
        dxDrawText("Pegar ", 776 + 1, 360 + 1, 813 + 1, 380 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Pegar ", 776, 360, 813, 380, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
        dxDrawRectangle(518, 196, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawText("Jetpack", 518 + 1, 196 + 1, 680 + 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Jetpack", 518, 196, 680, 226, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		--BOTAO--
        dxDrawText("ON", 714 + 1, 200 + 1, 751 + 1, 220 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("ON", 714, 200, 751, 220, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("OFF", 775 + 1, 200 + 1, 812 + 1, 220 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("OFF", 775, 200, 812, 220, tocolor(185, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
        dxDrawText("Kits", 518 + 1, 396 + 1, 680 + 1, 426 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Kits", 518, 396, 680, 426, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawRectangle(518, 436, 323, 30, tocolor(254, 150, 15, 255), false)
		--BOTAO--
        dxDrawText("VIP", 714 + 1, 400 + 1, 751 + 1, 420 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("VIP", 714, 400, 751, 420, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("Bomba", 776 + 1, 400 + 1, 813 + 1, 420 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Bomba", 776, 400, 813, 420, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("Habilidades", 604 + 1, 436 + 1, 766 + 1, 466 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Habilidades", 604, 436, 766, 466, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
        dxDrawRectangle(518, 476, 323, 30, tocolor(254, 150, 15, 255), false)
		--BOTAO--
        dxDrawText("Vip / Colete", 604 + 1, 476 + 1, 766 + 1, 506 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Vip / Colete", 604, 476, 766, 506, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
        dxDrawRectangle(518, 516, 323, 30, tocolor(254, 150, 15, 255), false)
		--BOTAO--
        dxDrawText("Espada Laser", 604 + 1, 516 + 1, 766 + 1, 546 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Espada Laser", 604, 516, 766, 546, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
        dxDrawRectangle(518, 556, 323, 30, tocolor(254, 150, 15, 255), false)
		--BOTAO--
        dxDrawText("Arma Gravitacional", 600 + 1, 556 + 1, 762 + 1, 586 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Arma Gravitacional", 600, 556, 762, 586, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
    end
	
Veiculos = false
function Veiculo ()
        dxDrawRectangle(518, 236, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawRectangle(518, 276, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawRectangle(518, 316, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawRectangle(518, 356, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawText("Blindagem", 518 + 1, 236 + 1, 680 + 1, 266 + 1, tocolor(0, 0, 0, 255), 1.00, dxfont0_PetitFormalScript, "center", "center", false, false, false, false, false)
        dxDrawText("Blindagem", 518, 236, 680, 266, tocolor(255, 255, 255, 255), 1.00, dxfont0_PetitFormalScript, "center", "center", false, false, false, false, false)
		--BOTAO--
        dxDrawText("ON", 714 + 1, 241 + 1, 751 + 1, 261 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        Botao1 = dxDrawText("ON", 714, 241, 751, 261, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
        dxDrawText("Rainbow", 533 + 1, 276 + 1, 655 + 1, 306 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Rainbow", 533, 276, 655, 306, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Invisivel", 518 + 1, 316 + 1, 680 + 1, 346 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Invisivel", 518, 316, 680, 346, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		--BOTAO--
        dxDrawText("OFF", 775 + 1, 241 + 1, 812 + 1, 261 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        Botao2 = dxDrawText("OFF", 775, 241, 812, 261, tocolor(185, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("ON", 714 + 1, 320 + 1, 751 + 1, 340 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        Botao3 = dxDrawText("ON", 714, 320, 751, 340, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		-------
		--BOTAO--
        dxDrawText("OFF", 776 + 1, 320 + 1, 813 + 1, 340 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("OFF", 776, 320, 813, 340, tocolor(185, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
        dxDrawText("Farol Colorido", 518 + 1, 356 + 1, 680 + 1, 386 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Farol Colorido", 518, 356, 680, 386, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawRectangle(518, 196, 323, 30, tocolor(254, 150, 15, 255), false)
        dxDrawText("Pegar", 518 + 1, 196 + 1, 680 + 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Pegar", 518, 196, 680, 226, tocolor(255, 255, 255, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		--BOTAO--
        dxDrawText("Moto", 714 + 1, 200 + 1, 751 + 1, 220 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Moto", 714, 200, 751, 220, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("Carro", 776 + 1, 200 + 1, 813 + 1, 220 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("Carro", 776, 200, 813, 220, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("ON", 714 + 1, 361 + 1, 751 + 1, 381 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("ON", 714, 361, 751, 381, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("ON", 714 + 1, 281 + 1, 751 + 1, 301 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("ON", 714, 281, 751, 301, tocolor(104, 185, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("OFF", 775 + 1, 281 + 1, 812 + 1, 301 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("OFF", 775, 281, 812, 301, tocolor(185, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
		--BOTAO--
        dxDrawText("OFF", 776 + 1, 361 + 1, 813 + 1, 381 + 1, tocolor(0, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
        dxDrawText("OFF", 776, 361, 813, 381, tocolor(185, 0, 0, 255), 1.00, userdata: 000251A4, "center", "center", false, false, false, false, false)
		---------
end

function CriarEvent()
if pvip == false then
showCursor (true)
addEventHandler ("onClientRender", root, Entrada)
playSoundFrontEnd(3)
pvip = true
else
if pvip == true or Jogadors == true or Veiculos == true then
showCursor(false)
removeEventHandler("onClientRender", root, Entrada)
removeEventHandler("onClientRender", root, Jogador)
removeEventHandler("onClientRender", root, Veiculo)
pvip = false
Jogadors = false
Veiculos = false
end
end
end
addCommandHandler("pvip", CriarEvent)

 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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