Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unfuck = function(l_1_0)
- local l_1_1 = string.gsub
- local l_1_2 = l_1_0
- local l_1_3 = "(#%x%x%x%x%x%x)"
- local l_1_4 = function(l_1_0)
- return ""
- end
- return l_1_1(l_1_2, l_1_3, l_1_4)
- end
- onDonoComandoVermelhoButtonClick = function()
- local l_2_0, l_2_1 = guiGridListGetSelectedItem(playerList)
- if l_2_0 == -1 or l_2_1 == -1 then
- return
- end
- local l_2_2 = guiGridListGetItemText(playerList, l_2_0, l_2_1)
- local l_2_3 = getPlayerFromName(l_2_2)
- if l_2_3 then
- triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_2_3, "Dono Comando Vermelho")
- end
- end
- onSubDonoComandoVermelhoButtonClick = function()
- local l_3_0, l_3_1 = guiGridListGetSelectedItem(playerList)
- if l_3_0 == -1 or l_3_1 == -1 then
- return
- end
- local l_3_2 = guiGridListGetItemText(playerList, l_3_0, l_3_1)
- local l_3_3 = getPlayerFromName(l_3_2)
- if l_3_3 then
- triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_3_3, "SubDono Comando Vermelho")
- end
- end
- onBracoDireitoDoDonoComandoVermelhoButtonClick = function()
- local l_4_0, l_4_1 = guiGridListGetSelectedItem(playerList)
- if l_4_0 == -1 or l_4_1 == -1 then
- return
- end
- local l_4_2 = guiGridListGetItemText(playerList, l_4_0, l_4_1)
- local l_4_3 = getPlayerFromName(l_4_2)
- if l_4_3 then
- triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_4_3, "Braco Direito Do Dono Comando Vermelho")
- end
- end
- onGerenteDaBocaComandoVermelhoButtonClick = function()
- local l_5_0, l_5_1 = guiGridListGetSelectedItem(playerList)
- if l_5_0 == -1 or l_5_1 == -1 then
- return
- end
- local l_5_2 = guiGridListGetItemText(playerList, l_5_0, l_5_1)
- local l_5_3 = getPlayerFromName(l_5_2)
- if l_5_3 then
- triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_5_3, "Gerente Da Boca Comando Vermelho")
- end
- end
- onTesoureiroComandoVermelhoButtonClick = function()
- local l_6_0, l_6_1 = guiGridListGetSelectedItem(playerList)
- if l_6_0 == -1 or l_6_1 == -1 then
- return
- end
- local l_6_2 = guiGridListGetItemText(playerList, l_6_0, l_6_1)
- local l_6_3 = getPlayerFromName(l_6_2)
- if l_6_3 then
- triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_6_3, "Tesoureiro Comando Vermelho")
- end
- end
- onAtiradorDeEliteComandoVermelhoButtonClick = function()
- local l_7_0, l_7_1 = guiGridListGetSelectedItem(playerList)
- if l_7_0 == -1 or l_7_1 == -1 then
- return
- end
- local l_7_2 = guiGridListGetItemText(playerList, l_7_0, l_7_1)
- local l_7_3 = getPlayerFromName(l_7_2)
- if l_7_3 then
- triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_7_3, "Atirador De Elite Comando Vermelho")
- end
- end
- onLadraoComandoVermelhoButtonClick = function()
- local l_8_0, l_8_1 = guiGridListGetSelectedItem(playerList)
- if l_8_0 == -1 or l_8_1 == -1 then
- return
- end
- local l_8_2 = guiGridListGetItemText(playerList, l_8_0, l_8_1)
- local l_8_3 = getPlayerFromName(l_8_2)
- if l_8_3 then
- triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_8_3, "Ladrao Comando Vermelho")
- end
- end
- onPassaRadioComandoVermelhoButtonClick = function()
- local l_9_0, l_9_1 = guiGridListGetSelectedItem(playerList)
- if l_9_0 == -1 or l_9_1 == -1 then
- return
- end
- local l_9_2 = guiGridListGetItemText(playerList, l_9_0, l_9_1)
- local l_9_3 = getPlayerFromName(l_9_2)
- if l_9_3 then
- triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_9_3, "Passa Radio Comando Vermelho")
- end
- end
- onPixadorComandoVermelhoButtonClick = function()
- local l_10_0, l_10_1 = guiGridListGetSelectedItem(playerList)
- if l_10_0 == -1 or l_10_1 == -1 then
- return
- end
- local l_10_2 = guiGridListGetItemText(playerList, l_10_0, l_10_1)
- local l_10_3 = getPlayerFromName(l_10_2)
- if l_10_3 then
- triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_10_3, "Pixador Comando Vermelho")
- end
- end
- onMembroComandoVermelhoButtonClick = function()
- local l_11_0, l_11_1 = guiGridListGetSelectedItem(playerList)
- if l_11_0 == -1 or l_11_1 == -1 then
- return
- end
- local l_11_2 = guiGridListGetItemText(playerList, l_11_0, l_11_1)
- local l_11_3 = getPlayerFromName(l_11_2)
- if l_11_3 then
- triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_11_3, "Membro Comando Vermelho")
- end
- end
- painel = function()
- GUIEditor_Grid = {}
- local l_12_0, l_12_1 = guiGetScreenSize()
- Window1 = guiCreateWindow((l_12_0 - 500) / 2, (l_12_1 - 400) / 2, 500, 400, "Painel de recrutamento do Comando Vermelho", false)
- BracoDireitoDoDonoComandoVermelho = guiCreateButton(18, 80, 86, 40, "Braco Direito Do Dono Comando Vermelho", false, Window1)
- guiSetFont(BracoDireitoDoDonoComandoVermelho, "default-bold-small")
- guiSetProperty(BracoDireitoDoDonoComandoVermelho, "NormalTextColour", "FF16E6E9")
- addEventHandler("onClientGUIClick", BracoDireitoDoDonoComandoVermelho, onBracoDireitoDoDonoComandoVermelhoButtonClick, true)
- TesoureiroComandoVermelho = guiCreateButton(18, 130, 86, 40, "Tesoureiro Comando Vermelho", false, Window1)
- guiSetFont(TesoureiroComandoVermelho, "default-bold-small")
- guiSetProperty(TesoureiroComandoVermelho, "NormalTextColour", "FF16E6E9")
- addEventHandler("onClientGUIClick", TesoureiroComandoVermelho, onTesoureiroComandoVermelhoButtonClick, true)
- DonoComandoVermelho = guiCreateButton(18, 32, 86, 40, "Dono Comando Vermelho", false, Window1)
- guiSetFont(DonoComandoVermelho, "default-bold-small")
- guiSetProperty(DonoComandoVermelho, "NormalTextColour", "FF16E6E9")
- addEventHandler("onClientGUIClick", DonoComandoVermelho, onDonoComandoVermelhoButtonClick, true)
- SubDonoComandoVermelho = guiCreateButton(120, 32, 86, 40, "SubDono Comando Vermelho", false, Window1)
- guiSetFont(SubDonoComandoVermelho, "default-bold-small")
- guiSetProperty(SubDonoComandoVermelho, "NormalTextColour", "FF16E6E9")
- addEventHandler("onClientGUIClick", SubDonoComandoVermelho, onSubDonoComandoVermelhoButtonClick, true)
- GerenteDaBocaComandoVermelho = guiCreateButton(120, 80, 86, 40, "Gerente Da Boca Comando Vermelho", false, Window1)
- guiSetFont(GerenteDaBocaComandoVermelho, "default-bold-small")
- guiSetProperty(GerenteDaBocaComandoVermelho, "NormalTextColour", "FF16E6E9")
- addEventHandler("onClientGUIClick", GerenteDaBocaComandoVermelho, onGerenteDaBocaComandoVermelhoButtonClick, true)
- AtiradorDeEliteComandoVermelho = guiCreateButton(120, 130, 86, 40, "Atirador De Elite Comando Vermelho", false, Window1)
- guiSetFont(AtiradorDeEliteComandoVermelho, "default-bold-small")
- guiSetProperty(AtiradorDeEliteComandoVermelho, "NormalTextColour", "FF16E6E9")
- addEventHandler("onClientGUIClick", AtiradorDeEliteComandoVermelho, onAtiradorDeEliteComandoVermelhoButtonClick, true)
- PixadorComandoVermelho = guiCreateButton(18, 180, 86, 40, "Pixador Comando Vermelho", false, Window1)
- guiSetFont(PixadorComandoVermelho, "default-bold-small")
- guiSetProperty(PixadorComandoVermelho, "NormalTextColour", "FF16E6E9")
- addEventHandler("onClientGUIClick", PixadorComandoVermelho, onPixadorComandoVermelhoButtonClick, true)
- LadraoComandoVermelho = guiCreateButton(120, 180, 86, 40, "Ladrao Comando Vermelho", false, Window1)
- guiSetFont(LadraoComandoVermelho, "default-bold-small")
- guiSetProperty(LadraoComandoVermelho, "NormalTextColour", "FF16E6E9")
- addEventHandler("onClientGUIClick", LadraoComandoVermelho, onLadraoComandoVermelhoButtonClick, true)
- PassaRadioComandoVermelho = guiCreateButton(18, 230, 86, 40, "Passa Radio Comando Vermelho", false, Window1)
- guiSetFont(PassaRadioComandoVermelho, "default-bold-small")
- guiSetProperty(PassaRadioComandoVermelho, "NormalTextColour", "FF16E6E9")
- addEventHandler("onClientGUIClick", PassaRadioComandoVermelho, onPassaRadioComandoVermelhoButtonClick, true)
- MembroComandoVermelho = guiCreateButton(120, 230, 86, 40, "Membro Comando Vermelho", false, Window1)
- guiSetFont(MembroComandoVermelho, "default-bold-small")
- guiSetProperty(MembroComandoVermelho, "NormalTextColour", "FF16E6E9")
- addEventHandler("onClientGUIClick", MembroComandoVermelho, onMembroComandoVermelhoButtonClick, true)
- playerList = guiCreateGridList(250, 30, 290, 290, false, Window1)
- local l_12_2 = guiGridListAddColumn(playerList, "Jogadores", 0.9)
- for l_12_6,l_12_7 in ipairs(getElementsByType("player")) do
- local l_12_8 = guiGridListAddRow(playerList)
- guiGridListSetItemText(playerList, l_12_8, l_12_2, getPlayerName(l_12_7), false, false)
- guiGridListSetItemColor(playerList, l_12_8, l_12_2, 255, 0, 0, 255)
- end
- guiCreateStaticImage(10, 320, 90, 100, "CV.png", false, Window1)
- fechar = guiCreateButton(300, 350, 100, 35, "Fechar", false, Window1)
- guiSetVisible(Window1, false)
- addEventHandler("onClientGUIClick", fechar, function()
- guiSetVisible(Window1, false)
- showCursor(false)
- end, false)
- end
- addEventHandler("onClientResourceStart", resourceRoot, painel)
- addEvent("CV", true)
- CV = function(l_13_0)
- local l_13_1 = getPlayerName(l_13_0)
- for l_13_5 = 0, guiGridListGetRowCount(playerList) do
- if guiGridListGetItemText(playerList, l_13_5, 1) == l_13_1 then
- guiGridListSetItemColor(playerList, l_13_5, 250, 50, 50, 250)
- end
- end
- end
- addEventHandler("CV", getRootElement(), CV)
- addEvent("abrirPainelCV", true)
- abrirPainelCV = function()
- guiSetVisible(Window1, true)
- showCursor(true)
- triggerServerEvent("CV", getLocalPlayer())
- end
- addEventHandler("abrirPainelCV", getRootElement(), abrirPainelCV)
- atualizarlista = function()
- guiGridListClear(playerList)
- for l_15_3,l_15_4 in ipairs(getElementsByType("player")) do
- local l_15_5 = guiGridListAddRow(playerList)
- guiGridListSetItemText(playerList, l_15_5, 1, getPlayerName(l_15_4), false, false)
- end
- end
- addEventHandler("onClientPlayerJoin", getRootElement(), atualizarlista)
- addEventHandler("onClientPlayerQuit", getRootElement(), atualizarlista)
- addEventHandler("onClientPlayerChangeNick", getRootElement(), atualizarlista)
Advertisement
Add Comment
Please, Sign In to add comment