+[T]rakin Posted October 29, 2018 Share Posted October 29, 2018 Boa noite a todos queria aqui pedir uma grande ajuda de voces, bom eu fiz um painel de Tag DX mas toda vez que inicio o script ou logou do servidor fica aparecendo isso e outra para outros jogadores tambem aparece isso http://prntscr.com/lbzai8 , ja tentei de varias formas corrigi mas nunca consegui aqui esta o codigo . PainelLista = guiCreateWindow(793, 142, 205, 470, "Jogadores online", false) guiWindowSetSizable(PainelLista, false) guiSetVisible(PainelLista, false) Lista = guiCreateGridList(793, 126, 210, 487, false) columm = guiGridListAddColumn(Lista, "Jogadores", 0.9) function guiackapaTG() if ( guiGetVisible (Lista) == true ) then guiSetVisible(Lista, false ) showCursor(false) else guiSetVisible(Lista, true) showCursor(true) ColocarJugadores3 () end end addEvent("paineltags", true) addEventHandler("paineltags", root, guiackapaTG) Link to comment
Jonas^ Posted October 29, 2018 Share Posted October 29, 2018 (edited) Isso é GUI e não DX, mas isso deverá resolver o problema de não aparecer a window. OBS: Sem o resto do script não tem como eu te ajudar resolver os erros. PainelLista = guiCreateWindow(793, 142, 205, 470, "Jogadores online", false) guiWindowSetSizable(PainelLista, false) guiSetVisible(PainelLista, false) Lista = guiCreateGridList(793, 126, 210, 487, false, PainelLista) columm = guiGridListAddColumn(Lista, "Jogadores", 0.9) function guiackapaTG() if ( guiGetVisible (Lista) == true ) then guiSetVisible(Lista, false ) showCursor(false) else guiSetVisible(Lista, true) showCursor(true) ColocarJugadores3 () end end addEvent("paineltags", true) addEventHandler("paineltags", root, guiackapaTG) Edited October 29, 2018 by OverKILL Link to comment
+[T]rakin Posted October 29, 2018 Author Share Posted October 29, 2018 ----------Painel de Tags feito by:+Trakin------------- function Tags() dxDrawRectangle(363, 126, 640, 487, tocolor(36, 36, 36, 232), false) ---Painel dxDrawRectangle(363, 100, 640, 26, tocolor(73, 195, 20, 191), false) ---LogoCima dxDrawText("Painel de Tags", 362, 98, 1003, 127, tocolor(0, 0, 0, 255), 1.90, "font/Bebas.otf", "center", "center", false, false, false, false, false) ---LogoCimaTexto dxDrawRectangle(363, 613, 640, 26, tocolor(73, 195, 20, 191), false) ---LogoBaixo dxDrawText("Todos direitos reservados 2018 @Copyrignt - Feito by:+Trakin", 363, 612, 1004, 637, tocolor(0, 0, 0, 255), 1.30, "default", "center", "center", false, false, false, false, false) ---LogoBaixoTexto dxDrawRectangle(767, 126, 26, 487, tocolor(73, 195, 20, 191), false) --FaixaMeio dxDrawRectangle(368, 132, 153, 23, tocolor(73, 195, 20, 191), false) --AddBope1 dxDrawText("BOPE", 366, 132, 521, 155, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 132, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveBope1 dxDrawText("X", 526, 131, 559, 155, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 132, 153, 23, tocolor(73, 195, 20, 191), false) --AddPMESP2 dxDrawText("PMESP", 569, 132, 724, 155, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 132, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePMESP2 dxDrawText("X", 727, 132, 760, 156, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 165, 153, 23, tocolor(73, 195, 20, 191), false) --addEB3 dxDrawText("EB", 366, 165, 521, 188, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 165, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveEB3 dxDrawText("X", 526, 165, 559, 188, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 165, 153, 23, tocolor(73, 195, 20, 191), false) --addPMERJ4 dxDrawText("PMERJ", 569, 165, 724, 188, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 165, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePMERJ4 dxDrawText("X", 727, 165, 760, 188, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 198, 153, 23, tocolor(73, 195, 20, 191), false) --addROCAM5 dxDrawText("ROCAM", 366, 198, 521, 221, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 198, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveROCAM5 dxDrawText("X", 526, 198, 559, 221, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 198, 153, 23, tocolor(73, 195, 20, 191), false) --addFT6 dxDrawText("FT", 569, 198, 724, 221, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 198, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveFT6 dxDrawText("X", 727, 198, 760, 221, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 231, 153, 23, tocolor(73, 195, 20, 191), false) --addCHOQUE7 dxDrawText("CHOQUE", 366, 231, 521, 254, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 231, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCHOQUE7 dxDrawText("X", 526, 231, 559, 254, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 231, 153, 23, tocolor(73, 195, 20, 191), false) --addPCC8 dxDrawText("PCC", 569, 231, 724, 254, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 231, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePCC8 dxDrawText("X", 727, 231, 760, 254, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 264, 153, 23, tocolor(73, 195, 20, 191), false) --addCV9 dxDrawText("CV", 366, 264, 521, 287, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 264, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCV9 dxDrawText("X", 526, 264, 559, 287, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 264, 153, 23, tocolor(73, 195, 20, 191), false) --addMTARINDO10 dxDrawText("MATARINDO", 569, 264, 724, 287, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 264, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveMATARINDO10 dxDrawText("X", 727, 264, 760, 287, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 297, 153, 23, tocolor(73, 195, 20, 191), false) --addPF11 dxDrawText("PF", 366, 297, 521, 320, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 297, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePF11 dxDrawText("X", 526, 297, 559, 320, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 297, 153, 23, tocolor(73, 195, 20, 191), false) --addCOE12 dxDrawText("COE", 569, 297, 724, 320, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 297, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCOE12 dxDrawText("X", 727, 297, 760, 320, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 330, 153, 23, tocolor(73, 195, 20, 191), false) --addADA13 dxDrawText("ADA", 366, 330, 521, 353, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 330, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveADA13 dxDrawText("X", 526, 330, 559, 353, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 330, 153, 23, tocolor(73, 195, 20, 191), false) --addROTA14 dxDrawText("ROTA", 569, 330, 724, 353, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 330, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveROTA14 dxDrawText("X", 727, 330, 760, 353, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 363, 153, 23, tocolor(73, 195, 20, 191), false) --addROTAM15 dxDrawText("ROTAM", 366, 363, 521, 386, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 363, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveROTAM15 dxDrawText("X", 526, 363, 559, 386, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 363, 153, 23, tocolor(73, 195, 20, 191), false) --addCOISAC16 dxDrawText("COISAC", 569, 363, 724, 386, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 363, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCOISAC16 dxDrawText("X", 727, 363, 760, 386, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 396, 153, 23, tocolor(73, 195, 20, 191), false) --addQR717 dxDrawText("QR7", 366, 396, 521, 419, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 396, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveQR717 dxDrawText("X", 526, 396, 559, 419, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) end function abrir (_,state) if painel == false then showCursor(true) addEventHandler("onClientRender", root, Tags) painel = true else showCursor(false) removeEventHandler("onClientRender", root, Tags) painel = false end end addEvent("paineltags", true) addEventHandler("paineltags", root , abrir) ----------------------------------------[Lista de Jogadores]--------------------------------------------- PainelLista = guiCreateWindow(793, 142, 205, 470, "Jogadores online", false) guiWindowSetSizable(PainelLista, false) guiSetVisible(PainelLista, false) Lista = guiCreateGridList(793, 126, 210, 487, false) columm = guiGridListAddColumn(Lista, "Jogadores", 0.9) function guiackapaTG() if ( guiGetVisible (Lista) == true ) then guiSetVisible(Lista, false ) showCursor(false) else guiSetVisible(Lista, true) showCursor(true) ColocarJugadores3 () end end addEvent("paineltags", true) addEventHandler("paineltags", root, guiackapaTG) ------------------------------------------------------------------------ function ColocarJugadores3 () guiGridListClear(Lista)-- Apaga a grid for i, thePlayer in ipairs ( getElementsByType ( "player" ) ) do-- Obtem todos os jogadores local row = guiGridListAddRow( Lista )-- Agregar row guiGridListSetItemText ( Lista, row, 1, getPlayerName( thePlayer ), false, false ) end end --function BuscList() -- guiGridListClear( Lista ) -- local Nommbre = guiGetText( Box ) --for i, thePlayer in ipairs ( getElementsByType ( "player" ) ) do -- if ( thePlayer ~= localPlayer ) then--Para que no se pueda buscar a uno mismo -- if ( string.find( getPlayerName( thePlayer ):lower(), Nommbre:lower() ) ) then--Para buscar el jugador con ese nombre -- local row = guiGridListAddRow ( Lista )--agregar row -- guiGridListSetItemText ( Lista, row, 1, getPlayerName ( thePlayer ), false, false )--agregar un row con ese nombre -- end --end -- end --end --addEventHandler ("onClientGUIClick", Box, BuscList ,false) ---Tags Console function Console (_,state) local jogadorselecionado = guiGridListGetItemText(Lista, guiGridListGetSelectedItem(Lista), 1) if painel == true then if ( state == "down" ) then if ( isCursorOnElement (368, 132, 153, 23) ) then triggerServerEvent ("addtag1", localPlayer, getPlayerFromName(jogadorselecionado)) --AddBOPE elseif ( isCursorOnElement (527, 132, 32, 23) ) then triggerServerEvent ("remvtag1", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveBOPE elseif ( isCursorOnElement (571, 132, 153, 23) ) then triggerServerEvent ("addtag2", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPMESP elseif ( isCursorOnElement (728, 132, 32, 23) ) then triggerServerEvent ("remvtag2", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePMESP elseif ( isCursorOnElement (368, 165, 153, 23) ) then triggerServerEvent ("addtag3", localPlayer, getPlayerFromName(jogadorselecionado)) --AddEB elseif ( isCursorOnElement (527, 165, 32, 23) ) then triggerServerEvent ("remvtag3", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveEB elseif ( isCursorOnElement (571, 165, 153, 23) ) then triggerServerEvent ("addtag4", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPMERJ elseif ( isCursorOnElement (728, 165, 32, 23) ) then triggerServerEvent ("remvtag4", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePMERJ elseif ( isCursorOnElement (368, 198, 153, 23) ) then triggerServerEvent ("addtag5", localPlayer, getPlayerFromName(jogadorselecionado)) --AddROCAM elseif ( isCursorOnElement (527, 198, 32, 23) ) then triggerServerEvent ("remvtag5", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveROCAM elseif ( isCursorOnElement (571, 198, 153, 23) ) then triggerServerEvent ("addtag6", localPlayer, getPlayerFromName(jogadorselecionado)) --AddFT elseif ( isCursorOnElement (728, 198, 32, 23) ) then triggerServerEvent ("remvtag6", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveFT elseif ( isCursorOnElement (368, 231, 153, 23) ) then triggerServerEvent ("addtag7", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCHOQUE elseif ( isCursorOnElement (527, 231, 32, 23) ) then triggerServerEvent ("remvtag7", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCHOQUE elseif ( isCursorOnElement (571, 231, 153, 23) ) then triggerServerEvent ("addtag8", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPCC elseif ( isCursorOnElement (728, 231, 32, 23) ) then triggerServerEvent ("remvtag8", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePCC elseif ( isCursorOnElement (368, 264, 153, 23) ) then triggerServerEvent ("addtag9", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCV elseif ( isCursorOnElement (527, 264, 32, 23) ) then triggerServerEvent ("remvtag9", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCV elseif ( isCursorOnElement (571, 264, 153, 23) ) then triggerServerEvent ("addtag10", localPlayer, getPlayerFromName(jogadorselecionado)) --AddMATARINDO elseif ( isCursorOnElement (728, 264, 32, 23) ) then triggerServerEvent ("remvtag10", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveMATARINDO elseif ( isCursorOnElement (368, 297, 153, 23) ) then triggerServerEvent ("addtag11", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPF elseif ( isCursorOnElement (527, 297, 32, 23) ) then triggerServerEvent ("remvtag11", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePF elseif ( isCursorOnElement (571, 297, 153, 23) ) then triggerServerEvent ("addtag12", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCOE elseif ( isCursorOnElement (728, 297, 32, 23) ) then triggerServerEvent ("remvtag12", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCOE elseif ( isCursorOnElement (368, 330, 153, 23) ) then triggerServerEvent ("addtag13", localPlayer, getPlayerFromName(jogadorselecionado)) --AddADA elseif ( isCursorOnElement (527, 330, 32, 23) ) then triggerServerEvent ("remvtag13", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveADA elseif ( isCursorOnElement (571, 330, 153, 23) ) then triggerServerEvent ("addtag14", localPlayer, getPlayerFromName(jogadorselecionado)) --AddROTA elseif ( isCursorOnElement (728, 330, 32, 23) ) then triggerServerEvent ("remvtag14", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveROTA elseif ( isCursorOnElement (368, 363, 153, 23) ) then triggerServerEvent ("addtag15", localPlayer, getPlayerFromName(jogadorselecionado)) --AddROTAM elseif ( isCursorOnElement (527, 363, 32, 23) ) then triggerServerEvent ("remvtag15", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveROTAM elseif ( isCursorOnElement (571, 363, 153, 23) ) then triggerServerEvent ("addtag16", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCOISAC elseif ( isCursorOnElement (728, 363, 32, 23 ) ) then triggerServerEvent ("remvtag16", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCOISAC elseif ( isCursorOnElement (368, 396, 153, 23) ) then triggerServerEvent ("addtag17", localPlayer, getPlayerFromName(jogadorselecionado)) --AddRQR7 elseif ( isCursorOnElement (527, 396, 32, 23) ) then triggerServerEvent ("remvtag17", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveQR7 end end end end addEventHandler ("onClientClick", root, Console) 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
Jonas^ Posted October 29, 2018 Share Posted October 29, 2018 18 minutes ago, +[T]rakin said: ----------Painel de Tags feito by:+Trakin------------- function Tags() dxDrawRectangle(363, 126, 640, 487, tocolor(36, 36, 36, 232), false) ---Painel dxDrawRectangle(363, 100, 640, 26, tocolor(73, 195, 20, 191), false) ---LogoCima dxDrawText("Painel de Tags", 362, 98, 1003, 127, tocolor(0, 0, 0, 255), 1.90, "font/Bebas.otf", "center", "center", false, false, false, false, false) ---LogoCimaTexto dxDrawRectangle(363, 613, 640, 26, tocolor(73, 195, 20, 191), false) ---LogoBaixo dxDrawText("Todos direitos reservados 2018 @Copyrignt - Feito by:+Trakin", 363, 612, 1004, 637, tocolor(0, 0, 0, 255), 1.30, "default", "center", "center", false, false, false, false, false) ---LogoBaixoTexto dxDrawRectangle(767, 126, 26, 487, tocolor(73, 195, 20, 191), false) --FaixaMeio dxDrawRectangle(368, 132, 153, 23, tocolor(73, 195, 20, 191), false) --AddBope1 dxDrawText("BOPE", 366, 132, 521, 155, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 132, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveBope1 dxDrawText("X", 526, 131, 559, 155, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 132, 153, 23, tocolor(73, 195, 20, 191), false) --AddPMESP2 dxDrawText("PMESP", 569, 132, 724, 155, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 132, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePMESP2 dxDrawText("X", 727, 132, 760, 156, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 165, 153, 23, tocolor(73, 195, 20, 191), false) --addEB3 dxDrawText("EB", 366, 165, 521, 188, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 165, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveEB3 dxDrawText("X", 526, 165, 559, 188, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 165, 153, 23, tocolor(73, 195, 20, 191), false) --addPMERJ4 dxDrawText("PMERJ", 569, 165, 724, 188, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 165, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePMERJ4 dxDrawText("X", 727, 165, 760, 188, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 198, 153, 23, tocolor(73, 195, 20, 191), false) --addROCAM5 dxDrawText("ROCAM", 366, 198, 521, 221, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 198, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveROCAM5 dxDrawText("X", 526, 198, 559, 221, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 198, 153, 23, tocolor(73, 195, 20, 191), false) --addFT6 dxDrawText("FT", 569, 198, 724, 221, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 198, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveFT6 dxDrawText("X", 727, 198, 760, 221, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 231, 153, 23, tocolor(73, 195, 20, 191), false) --addCHOQUE7 dxDrawText("CHOQUE", 366, 231, 521, 254, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 231, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCHOQUE7 dxDrawText("X", 526, 231, 559, 254, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 231, 153, 23, tocolor(73, 195, 20, 191), false) --addPCC8 dxDrawText("PCC", 569, 231, 724, 254, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 231, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePCC8 dxDrawText("X", 727, 231, 760, 254, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 264, 153, 23, tocolor(73, 195, 20, 191), false) --addCV9 dxDrawText("CV", 366, 264, 521, 287, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 264, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCV9 dxDrawText("X", 526, 264, 559, 287, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 264, 153, 23, tocolor(73, 195, 20, 191), false) --addMTARINDO10 dxDrawText("MATARINDO", 569, 264, 724, 287, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 264, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveMATARINDO10 dxDrawText("X", 727, 264, 760, 287, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 297, 153, 23, tocolor(73, 195, 20, 191), false) --addPF11 dxDrawText("PF", 366, 297, 521, 320, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 297, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePF11 dxDrawText("X", 526, 297, 559, 320, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 297, 153, 23, tocolor(73, 195, 20, 191), false) --addCOE12 dxDrawText("COE", 569, 297, 724, 320, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 297, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCOE12 dxDrawText("X", 727, 297, 760, 320, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 330, 153, 23, tocolor(73, 195, 20, 191), false) --addADA13 dxDrawText("ADA", 366, 330, 521, 353, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 330, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveADA13 dxDrawText("X", 526, 330, 559, 353, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 330, 153, 23, tocolor(73, 195, 20, 191), false) --addROTA14 dxDrawText("ROTA", 569, 330, 724, 353, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 330, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveROTA14 dxDrawText("X", 727, 330, 760, 353, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 363, 153, 23, tocolor(73, 195, 20, 191), false) --addROTAM15 dxDrawText("ROTAM", 366, 363, 521, 386, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 363, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveROTAM15 dxDrawText("X", 526, 363, 559, 386, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 363, 153, 23, tocolor(73, 195, 20, 191), false) --addCOISAC16 dxDrawText("COISAC", 569, 363, 724, 386, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 363, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCOISAC16 dxDrawText("X", 727, 363, 760, 386, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 396, 153, 23, tocolor(73, 195, 20, 191), false) --addQR717 dxDrawText("QR7", 366, 396, 521, 419, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 396, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveQR717 dxDrawText("X", 526, 396, 559, 419, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) end function abrir (_,state) if painel == false then showCursor(true) addEventHandler("onClientRender", root, Tags) painel = true else showCursor(false) removeEventHandler("onClientRender", root, Tags) painel = false end end addEvent("paineltags", true) addEventHandler("paineltags", root , abrir) ----------------------------------------[Lista de Jogadores]--------------------------------------------- PainelLista = guiCreateWindow(793, 142, 205, 470, "Jogadores online", false) guiWindowSetSizable(PainelLista, false) guiSetVisible(PainelLista, false) Lista = guiCreateGridList(793, 126, 210, 487, false) columm = guiGridListAddColumn(Lista, "Jogadores", 0.9) function guiackapaTG() if ( guiGetVisible (Lista) == true ) then guiSetVisible(Lista, false ) showCursor(false) else guiSetVisible(Lista, true) showCursor(true) ColocarJugadores3 () end end addEvent("paineltags", true) addEventHandler("paineltags", root, guiackapaTG) ------------------------------------------------------------------------ function ColocarJugadores3 () guiGridListClear(Lista)-- Apaga a grid for i, thePlayer in ipairs ( getElementsByType ( "player" ) ) do-- Obtem todos os jogadores local row = guiGridListAddRow( Lista )-- Agregar row guiGridListSetItemText ( Lista, row, 1, getPlayerName( thePlayer ), false, false ) end end --function BuscList() -- guiGridListClear( Lista ) -- local Nommbre = guiGetText( Box ) --for i, thePlayer in ipairs ( getElementsByType ( "player" ) ) do -- if ( thePlayer ~= localPlayer ) then--Para que no se pueda buscar a uno mismo -- if ( string.find( getPlayerName( thePlayer ):lower(), Nommbre:lower() ) ) then--Para buscar el jugador con ese nombre -- local row = guiGridListAddRow ( Lista )--agregar row -- guiGridListSetItemText ( Lista, row, 1, getPlayerName ( thePlayer ), false, false )--agregar un row con ese nombre -- end --end -- end --end --addEventHandler ("onClientGUIClick", Box, BuscList ,false) ---Tags Console function Console (_,state) local jogadorselecionado = guiGridListGetItemText(Lista, guiGridListGetSelectedItem(Lista), 1) if painel == true then if ( state == "down" ) then if ( isCursorOnElement (368, 132, 153, 23) ) then triggerServerEvent ("addtag1", localPlayer, getPlayerFromName(jogadorselecionado)) --AddBOPE elseif ( isCursorOnElement (527, 132, 32, 23) ) then triggerServerEvent ("remvtag1", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveBOPE elseif ( isCursorOnElement (571, 132, 153, 23) ) then triggerServerEvent ("addtag2", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPMESP elseif ( isCursorOnElement (728, 132, 32, 23) ) then triggerServerEvent ("remvtag2", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePMESP elseif ( isCursorOnElement (368, 165, 153, 23) ) then triggerServerEvent ("addtag3", localPlayer, getPlayerFromName(jogadorselecionado)) --AddEB elseif ( isCursorOnElement (527, 165, 32, 23) ) then triggerServerEvent ("remvtag3", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveEB elseif ( isCursorOnElement (571, 165, 153, 23) ) then triggerServerEvent ("addtag4", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPMERJ elseif ( isCursorOnElement (728, 165, 32, 23) ) then triggerServerEvent ("remvtag4", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePMERJ elseif ( isCursorOnElement (368, 198, 153, 23) ) then triggerServerEvent ("addtag5", localPlayer, getPlayerFromName(jogadorselecionado)) --AddROCAM elseif ( isCursorOnElement (527, 198, 32, 23) ) then triggerServerEvent ("remvtag5", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveROCAM elseif ( isCursorOnElement (571, 198, 153, 23) ) then triggerServerEvent ("addtag6", localPlayer, getPlayerFromName(jogadorselecionado)) --AddFT elseif ( isCursorOnElement (728, 198, 32, 23) ) then triggerServerEvent ("remvtag6", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveFT elseif ( isCursorOnElement (368, 231, 153, 23) ) then triggerServerEvent ("addtag7", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCHOQUE elseif ( isCursorOnElement (527, 231, 32, 23) ) then triggerServerEvent ("remvtag7", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCHOQUE elseif ( isCursorOnElement (571, 231, 153, 23) ) then triggerServerEvent ("addtag8", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPCC elseif ( isCursorOnElement (728, 231, 32, 23) ) then triggerServerEvent ("remvtag8", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePCC elseif ( isCursorOnElement (368, 264, 153, 23) ) then triggerServerEvent ("addtag9", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCV elseif ( isCursorOnElement (527, 264, 32, 23) ) then triggerServerEvent ("remvtag9", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCV elseif ( isCursorOnElement (571, 264, 153, 23) ) then triggerServerEvent ("addtag10", localPlayer, getPlayerFromName(jogadorselecionado)) --AddMATARINDO elseif ( isCursorOnElement (728, 264, 32, 23) ) then triggerServerEvent ("remvtag10", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveMATARINDO elseif ( isCursorOnElement (368, 297, 153, 23) ) then triggerServerEvent ("addtag11", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPF elseif ( isCursorOnElement (527, 297, 32, 23) ) then triggerServerEvent ("remvtag11", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePF elseif ( isCursorOnElement (571, 297, 153, 23) ) then triggerServerEvent ("addtag12", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCOE elseif ( isCursorOnElement (728, 297, 32, 23) ) then triggerServerEvent ("remvtag12", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCOE elseif ( isCursorOnElement (368, 330, 153, 23) ) then triggerServerEvent ("addtag13", localPlayer, getPlayerFromName(jogadorselecionado)) --AddADA elseif ( isCursorOnElement (527, 330, 32, 23) ) then triggerServerEvent ("remvtag13", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveADA elseif ( isCursorOnElement (571, 330, 153, 23) ) then triggerServerEvent ("addtag14", localPlayer, getPlayerFromName(jogadorselecionado)) --AddROTA elseif ( isCursorOnElement (728, 330, 32, 23) ) then triggerServerEvent ("remvtag14", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveROTA elseif ( isCursorOnElement (368, 363, 153, 23) ) then triggerServerEvent ("addtag15", localPlayer, getPlayerFromName(jogadorselecionado)) --AddROTAM elseif ( isCursorOnElement (527, 363, 32, 23) ) then triggerServerEvent ("remvtag15", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveROTAM elseif ( isCursorOnElement (571, 363, 153, 23) ) then triggerServerEvent ("addtag16", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCOISAC elseif ( isCursorOnElement (728, 363, 32, 23 ) ) then triggerServerEvent ("remvtag16", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCOISAC elseif ( isCursorOnElement (368, 396, 153, 23) ) then triggerServerEvent ("addtag17", localPlayer, getPlayerFromName(jogadorselecionado)) --AddRQR7 elseif ( isCursorOnElement (527, 396, 32, 23) ) then triggerServerEvent ("remvtag17", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveQR7 end end end end addEventHandler ("onClientClick", root, Console) 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 Não to entendendo o que você esta tentando fazer, você ta misturando gui e dx em um mesmo script? alias testou a parte que te passei? se não teste por favor. Link to comment
+[T]rakin Posted October 29, 2018 Author Share Posted October 29, 2018 A parte q voce passou nao esta exibindo a column dos "Jogadores" Bom então esse erro n tem como resolver? Por causa que o script é dx e gui Link to comment
Other Languages Moderators Lord Henry Posted October 30, 2018 Other Languages Moderators Share Posted October 30, 2018 Olá. Só queria dizer que os erros que estão aparecendo no seu debugscript ocorrem pelo seguinte: Existe algum end sem função ou sem condição em aberto. O evento paineltags é chamado pelo server mas ele não existe no client. Falta dar permissão de aclGroupAddObject ao resource. Falta dar permissão de aclGroupRemoveObject ao resource. Entender o debugscript é essencial para ser um bom programador. Boa sorte. Link to comment
+[T]rakin Posted October 30, 2018 Author Share Posted October 30, 2018 10 hours ago, Lord Henry said: Olá. Só queria dizer que os erros que estão aparecendo no seu debugscript ocorrem pelo seguinte: Existe algum end sem função ou sem condição em aberto. O evento paineltags é chamado pelo server mas ele não existe no client. Falta dar permissão de aclGroupAddObject ao resource. Falta dar permissão de aclGroupRemoveObject ao resource. Entender o debugscript é essencial para ser um bom programador. Boa sorte. Sobre a falta das permissoes disso eu ja vi. Vou tenta da mas uma olhada do script direito 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