Jump to content

Mec.Love

Members
  • Posts

    50
  • Joined

  • Last visited

Everything posted by Mec.Love

  1. Mas assim, vamos supor que chegue uma hora que os carros de origem do game acabem, e eu não consiga mais por nenhuma skin, teria como por mais carros?
  2. Galera, teria alguma maneira de CLONAR um carro no servidor da MTA? Tipo, id 596, clonar ele dando para setar duas SKIN diferente no mesmo.
  3. fala galera, já testei dois códigos para spawn de veículos por alc, mas nenhuma funcionou, nem a msg do script aparece.... código Spawn = createMarker(197.93676757813, 1875.7465820313, 17.648057937622 -1,"cylinder", 1.9, 255, 140, 0, 99) Destroy = createMarker(174.04705810547, 2021.0935058594, 21.667898178101 -2,"cylinder", 5.0, 128, 0, 0, 99) function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end veh = {} function spawnhl ( thePlayer, comando, nick ) if veh[thePlayer] and isElement( veh[thePlayer] ) then destroyElement ( veh[thePlayer] ) veh[thePlayer] = nil end end local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "EB") ) then veh[thePlayer] = createVehicle(479, 162.86917114258, 2007.6252441406, 21.667898178101, -0, 0, 0.93193572759628) warpPedIntoVehicle ( thePlayer, veh[thePlayer] ) exports._infobox:addNotification(thePlayer, "#FFFF00Você pegou o Helicóptero da EB!!!", "success") else exports._infobox:addNotification(thePlayer, "#FF0000Você não é da EB para pegar esse VEÍCULO!", "error") end end addEventHandler("onMarkerHit", Spawn, spawnhl) function destroyvtr ( thePlayer ) if veh[thePlayer] and isElement(veh[thePlayer]) then destroyElement (veh[thePlayer]) exports._infobox:addNotification(thePlayer, "#FFFF00Você destruiu o Helicóptero da EB!!!", "success") else end end addEventHandler("onMarkerHit", Destroy, destroyvtr) o erro do debugscript "spawn_C.Lua:31: Bad argument @'AddEvrntHandler' [Expected function at argument 3, got nil" podem ajudar?
  4. Galera, estou configurando um script, porém quando ele vai fazer a função apertando a tecla, ele manda a mensagem para todos do servidor function processLockUnlock(vehicle) local locked = isVehicleLocked(vehicle) if isPedInVehicle(localPlayer) then playSounds("lockin") else playSounds("lockout") end if locked then triggerServerEvent("vehicleLock", localPlayer,localPlayer, vehicle, false) outputChatBox("#1066E7[VLV - Veiculo]: #FFFFFFVeiculo destrancado!", 255, 255, 255, true) else triggerServerEvent("vehicleLock", localPlayer,localPlayer, vehicle, true) outputChatBox("#1066E7[VLV - Veiculo]: #FFFFFFVeiculo trancado!", 255, 255, 255, true) end end poderiam me ajudar?
  5. Olá, testei mudando a linha que você disse e continua com o erro [ ERROR: Loading script failed: PL_PainelRevistar\Client.Lua:86:')' expected near "Peso:" ]
  6. O 1 erro no debugscript [ ERROR: Server triggered clientside event L:iniciou_Comando, but event is not added clientside ] 2 erro no mesmo script [ ERROR: Loading script failed: PL_PainelRevistar\Client.Lua:86:')' expected near "Peso:" serverside function AbrirPainel(source,cmd,pname) local accName = getAccountName ( getPlayerAccount ( source ) ) local cx,cy,cz = getElementPosition(cliente) local x,y,z = getElementPosition(source) local dist = getDistanceBetweenPoints3D(x,y,z,cx,cy,cz) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policial" ) ) then cliente = getPlayerFromPartialName(pname) or getPlayerFromID(pname) if isElement(cliente) then if dist <= 7 then local PegarId = getPlayerFromID(cliente) local PegarNick = getPlayerName(cliente) local PegarNome = getElementData(cliente, "AirNew_RG_NomeCompleto") or "N/A" local PegarSobrenome = getElementData(cliente, "AirNew_RG_Sobrenome") or "N/A" local Idade = getElementData(cliente, "AirNew_RG_Idade") or "N/A" local Peso = getElementData(cliente, "Peso") or "70Kg" local Altura = getElementData(cliente, "Altura") or "1,70m" local Sexo = getElementData(cliente, "Sexo") or "Masculino" local Porte = getElementData(cliente, "PorteDeArmas") or "Não possui" local Wanted = getPlayerWantedLevel(cliente) local Dinheiro = getPlayerMoney(cliente) local Level = getElementData(cliente, "Level") or "0" setElementData(source, "Suspeito:ID", PegarId) setElementData(source, "Suspeito:Nick", PegarNick) setElementData(source, "Suspeito:AirNew_RG_NomeCompleto",PegarNome) setElementData(source, "Suspeito:AirNew_RG_Sobrenome",PegarSobrenome) setElementData(source, "Suspeito:AirNew_RG_Idade",Idade) setElementData(source, "Suspeito:Peso",Peso) setElementData(source, "Suspeito:Altura",Altura) setElementData(source, "Suspeito:Sexo",Sexo) setElementData(source, "Suspeito:PorteDeArmas",Porte) setElementData(source, "Suspeito:Wanted",Wanted) setElementData(source, "Suspeito:Dinheiro",Dinheiro) setElementData(source, "Suspeito:Level",Level) setElementData(source, "L:IDRevistado", PegarId) triggerClientEvent(source, "L:Iniciou_Comando", source) else outputChatBox("#0064c8» #ffffffEsse jogador está muito longe.",source,255,255,255,true) end else outputChatBox("#0064c8» #ffffffEsse jogador não existe ou está offiline.",source,255,255,255,true) end else outputChatBox("#0064c8» #ffffffVocê não tem permissão para esse comando.",source,255,255,255,true) end end addCommandHandler("abordar",AbrirPainel) function VCNH() local CNH = getElementData(cliente, "Habilitação") or "Não" outputChatBox("#0064c8»#ffffff Possui habilitação: #0064c8"..CNH, source, 255,255,255,true) end addEvent ( "L:VCNH", true) addEventHandler ( "L:VCNH", root, VCNH ) function VMultar() local Valor = getElementData(source,"L:ValorMulta") or 0 local Motivo = getElementData(source, "L:MotivoMulta") or "erro" outputChatBox("#0064c8»#ffffff Você multou o jogador #0064c8"..getPlayerName(cliente).."#ffffff por #0064c8$"..Valor.."#ffffff pelo motivo #0064c8".. Motivo, source, 255,255,255,true) outputChatBox("#0064c8»#ffffff O Polícial #0064c8"..getPlayerName(source).."#ffffff te multou por #0064c8$"..Valor.."#ffffff pelo motivo #0064c8"..Motivo, cliente, 255,255,255,true) takePlayerMoney(cliente,Valor) givePlayerMoney(source,Valor) end addEvent ( "L:MultouJogador", true) addEventHandler ( "L:MultouJogador", root, VMultar ) algemar = false function VAlgemar2() local algemado = getElementData(cliente,"algemado") or false if algemado == false then setPedAnimation( cliente, "GRAVEYARD", "mrnM_loop", -1, true, false, false, false) -- Animação de algemar setElementFrozen( cliente, true ) -- Freezar jogador setPedAnimation( cliente, "GRAVEYARD", "mrnM_loop", -1, true, false, false, false) toggleControl(cliente, "fire", false) -- retirar função de atirar setPedAnimation( cliente, "GRAVEYARD", "mrnM_loop", -1, true, false, false, false) setElementData(cliente,"algemado",true) else setPedAnimation( cliente) -- Animação de algemar setElementFrozen( cliente, false ) -- Freezar jogador toggleControl(cliente, "fire", true) -- retirar função de atirar setElementData(cliente,"algemado",false) end end addEvent ( "L:VAlgemar", true) addEventHandler ( "L:VAlgemar", root, VAlgemar2 ) function VRevistar() local Drogas = getElementData(cliente, "L:Maconhas") or 0 outputChatBox ( "#0064c8» #ffffffDrogas do jogador:#0064c8 "..Drogas, source, 255, 255, 255, true ) outputChatBox ( "#0064c8» #ffffffArmas do jogador:", source, 255, 255, 255, true ) for slot = 0, 12 do local Armas = getPedWeapon ( cliente, slot ) local Municao = getPedTotalAmmo ( cliente, slot ) if Armas > 0 then if Municao > 0 then weapon_nome = getWeaponNameFromID ( Armas ) outputChatBox ( "#0064c8» #ffffff"..weapon_nome.." #0064c8- #ffffff"..Municao.." Bala(s)!", source, 255, 255, 255, true ) end end end end addEvent ( "L:VRevistar", true) addEventHandler ( "L:VRevistar", root, VRevistar ) function VDrogas() local Drogas = getElementData(cliente, "L:Maconhas") or 0 if Drogas > 0 then outputChatBox ( "#0064c8» #ffffffVocê prendeu #0064c8"..Drogas.."#ffffff do suspeito.", source, 255, 255, 255, true ) setElementData(cliente,"L:Maconhas",0) outputChatBox("Você abriu Drogas", source, 255,255,255) else outputChatBox ( "#0064c8» #ffffffEsse jogador não possui drogas.", source, 255, 255, 255, true ) end end addEvent ( "L:VDrogas", true) addEventHandler ( "L:VDrogas", root, VDrogas ) function VArmas() takeAllWeapons (cliente) outputChatBox ( "#0064c8» #ffffffVocê prendeu todas as armas do suspeito.", source, 255, 255, 255, true ) end addEvent ( "L:VArmas", true) addEventHandler ( "L:VArmas", root, VArmas ) ultimovei = false function verificarV(thePlayer) theVehicle = getPedOccupiedVehicle ( thePlayer ) local id = getVehicleID ( theVehicle ) if id == 490 then ultimovei = true else ultimovei = false end end addEventHandler("onVehicleEnter",root,verificarV) function VPrender() local Preso = getElementData(cliente, "IndoPreso") or false if ultimovei == true then if Preso == false then attachElements (cliente,theVehicle, 0, -1.7, 0.7 ) setPedAnimation( cliente, "CRACK", "crckidle3", -1, true, false, false, false) -- Animação de algemar setElementData(cliente, "IndoPreso",true) else detachElements(cliente,theVehicle,0,2,0) setPedAnimation(cliente) setElementData(cliente,"IndoPreso",false) end else outputChatBox("#0064c8» #ffffffSeu ultimo veículo tem que ser um carro da polícia.",source,255,255,255,true) end end addEvent ( "L:VPrender", true) addEventHandler ( "L:VPrender", root, VPrender ) function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end function getPlayerFromID ( id ) for k, player in ipairs ( getElementsByType ( "player" ) ) do local p_id = getElementData ( player, "ID" ) if ( p_id == tonumber(id) ) then player_n = getPlayerName ( player ) return player, player_n end end end Clientside local screenW, screenH = guiGetScreenSize() local resW, resH = 1366, 768 local x, y = (screenW/resW), (screenH/resH) Painel = false Identidade = false function DxRevistar() local IdRevistado = getElementData(localPlayer, "Suspeito:Nick") or "N/A" dxDrawRectangle(screenW * 0.6950, screenH * 0.4333, screenW * 0.1875, screenH * 0.0467, tocolor(0, 0, 0, 208), false) dxDrawLine(screenW * 0.6950, screenH * 0.4800, screenW * 0.8825, screenH * 0.4800, tocolor(79, 144, 241, 208), 2, false) dxDrawText("Sistema Policial", screenW * 0.6925, screenH * 0.4333, screenW * 0.8812, screenH * 0.4800, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.6937, screenH * 0.4800, screenW * 0.1875, screenH * 0.0467, Cor1, false) dxDrawText("Nome: " ..IdRevistado, screenW * 0.6925, screenH * 0.4800, screenW * 0.8812, screenH * 0.5267, tocolor(255, 255, 255, 255), 0.90, "clear", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.6937, screenH * 0.5267, screenW * 0.1875, screenH * 0.0467,Cor2, false) dxDrawText("Identidade", screenW * 0.6937, screenH * 0.5267, screenW * 0.8825, screenH * 0.5733, tocolor(255, 255, 255, 255), 0.90, "clear", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.6937, screenH * 0.5733, screenW * 0.1875, screenH * 0.0467, Cor3, false) dxDrawText("Checar CNH", screenW * 0.6937, screenH * 0.5733, screenW * 0.8825, screenH * 0.6200, tocolor(255, 255, 255, 255), 0.90, "clear", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.6937, screenH * 0.6200, screenW * 0.1875, screenH * 0.0467, Cor4, false) dxDrawRectangle(screenW * 0.6937, screenH * 0.6667, screenW * 0.1875, screenH * 0.0467, Cor5, false) dxDrawRectangle(screenW * 0.6937, screenH * 0.7133, screenW * 0.1875, screenH * 0.0467, Cor6, false) dxDrawRectangle(screenW * 0.6937, screenH * 0.7600, screenW * 0.1875, screenH * 0.0467, Cor7, false) dxDrawText("Multar", screenW * 0.6925, screenH * 0.6200, screenW * 0.8812, screenH * 0.6667, tocolor(255, 255, 255, 255), 0.90, "clear", "center", "center", false, false, false, false, false) dxDrawText("Algemar", screenW * 0.6925, screenH * 0.6667, screenW * 0.8812, screenH * 0.7133, tocolor(255, 255, 255, 255), 0.90, "clear", "center", "center", false, false, false, false, false) dxDrawText("Revistar", screenW * 0.6925, screenH * 0.7133, screenW * 0.8812, screenH * 0.7600, tocolor(255, 255, 255, 255), 0.90, "clear", "center", "center", false, false, false, false, false) dxDrawText("Apreender drogas", screenW * 0.6925, screenH * 0.7600, screenW * 0.8812, screenH * 0.8067, tocolor(255, 255, 255, 255), 0.90, "clear", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.6937, screenH * 0.8067, screenW * 0.1875, screenH * 0.0467, Cor8, false) dxDrawText("Apreender armas", screenW * 0.6937, screenH * 0.8067, screenW * 0.8825, screenH * 0.8533, tocolor(255, 255, 255, 255), 0.90, "clear", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.6937, screenH * 0.8533, screenW * 0.1875, screenH * 0.0467, Cor9, false) dxDrawText("Prender", screenW * 0.6937, screenH * 0.8533, screenW * 0.8825, screenH * 0.9000, tocolor(255, 255, 255, 255), 0.90, "clear", "center", "center", false, false, false, false, false) Cor1 = tocolor(30, 30, 30, 255) Cor2 = tocolor(30, 30, 30, 255) Cor3 = tocolor(30, 30, 30, 255) Cor4 = tocolor(30, 30, 30, 255) Cor5 = tocolor(30, 30, 30, 255) Cor6 = tocolor(30, 30, 30, 255) Cor7 = tocolor(30, 30, 30, 255) Cor8 = tocolor(30, 30, 30, 255) Cor9 = tocolor(30, 30, 30, 255) if isCursorOnElement(screenW * 0.6937, screenH * 0.4800, screenW * 0.1875, screenH * 0.0467) then Cor1 = tocolor(0, 100, 200, 255) end if isCursorOnElement(screenW * 0.6937, screenH * 0.5267, screenW * 0.1875, screenH * 0.0467) then Cor2 = tocolor(0, 100, 200, 255) end if isCursorOnElement(screenW * 0.6937, screenH * 0.5733, screenW * 0.1875, screenH * 0.0467) then Cor3 = tocolor(0, 100, 200, 255) end if isCursorOnElement(screenW * 0.6937, screenH * 0.6200, screenW * 0.1875, screenH * 0.0467) then Cor4 = tocolor(0, 100, 200, 255) end if isCursorOnElement(screenW * 0.6937, screenH * 0.6667, screenW * 0.1875, screenH * 0.0467) then Cor5 = tocolor(0, 100, 200, 255) end if isCursorOnElement(screenW * 0.6937, screenH * 0.7133, screenW * 0.1875, screenH * 0.0467) then Cor6 = tocolor(0, 100, 200, 255) end if isCursorOnElement(screenW * 0.6937, screenH * 0.7600, screenW * 0.1875, screenH * 0.0467) then Cor7 = tocolor(0, 100, 200, 255) end if isCursorOnElement(screenW * 0.6937, screenH * 0.8067, screenW * 0.1875, screenH * 0.0467) then Cor7 = tocolor(0, 100, 200, 255) end if isCursorOnElement(screenW * 0.6937, screenH * 0.8533, screenW * 0.1875, screenH * 0.0467) then Cor8 = tocolor(0, 100, 200, 255) end end function AbrirPainel() if Identidade == false then if VMultar == false then if (Painel) then removeEventHandler("onClientRender",root,DxRevistar) Painel = false showCursor(false) else addEventHandler("onClientRender",root,DxRevistar) Painel = true showCursor(true) end end end end addEvent ( "L:Iniciou_Comando", true) addEventHandler ( "L:Iniciou_Comando", root, AbrirPainel ) VMultar = false function DxIdentidade() local Nick =getElementData(localPlayer, "Suspeito:Nick" ) or "N/A" local Nome =getElementData(localPlayer, "Suspeito:AirNew_RG_NomeCompleto")or "N/A" local Sobrenome =getElementData(localPlayer, "Suspeito:AirNew_RG_Sobrenome")or "N/A" local Idade =getElementData(localPlayer, "Suspeito:AirNew_RG_Idade")or "N/A" local Peso =getElementData(localPlayer, "Suspeito:Peso")or "80 Kg" local Altura =getElementData(localPlayer, "Suspeito:Altura")or "1,72m" local Sexo =getElementData(localPlayer, "Suspeito:Sexo")or "Masculino" local Porte =getElementData(localPlayer, "Suspeito:PorteDeArmas")or "Não possui" local Wanted = getElementData(localPlayer, "Suspeito:Wanted")or "N/A" local Dinheiro =getElementData(localPlayer, "Suspeito:Dinheiro")or "N/A" local Level =getElementData(localPlayer, "Suspeito:Level")or "N/A" local ID =getElementData(localPlayer, "Suspeito:ID")or "0" local DinheiroSujo =getElementData(localPlayer, "Suspeito:DinheiroSujo")or "0" dxDrawRectangle(screenW * 0.3787, screenH * 0.2700, screenW * 0.2225, screenH * 0.0400, tocolor(0, 0, 0, 222), false) dxDrawLine(screenW * 0.3787, screenH * 0.3100, screenW * 0.6000, screenH * 0.3083, tocolor(79, 144, 241, 208), 2, false) dxDrawText("Dados Do Cidadão", screenW * 0.3775, screenH * 0.2650, screenW * 0.6000, screenH * 0.3117, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.3787, screenH * 0.3117, screenW * 0.2213, screenH * 0.2833, tocolor(0, 0, 0, 203), false) dxDrawText("Idade:"..Idade.."|" "Peso:"..Peso, screenW * 0.3787, screenH * 0.3100, screenW * 0.6012, screenH * 0.3567, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "center", false, false, false, false, false) dxDrawLine(screenW * 0.3775, screenH * 0.3583, screenW * 0.5988, screenH * 0.3567, tocolor(79, 144, 241, 208), 2, false) dxDrawText("ID:"..ID.. "|" "Level:"..Level, screenW * 0.3775, screenH * 0.3567, screenW * 0.6000, screenH * 0.4033, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "center", false, false, false, false, false) dxDrawLine(screenW * 0.3775, screenH * 0.4050, screenW * 0.5988, screenH * 0.4033, tocolor(79, 144, 241, 208), 2, false) dxDrawLine(screenW * 0.3775, screenH * 0.4517, screenW * 0.5988, screenH * 0.4500, tocolor(79, 144, 241, 208), 2, false) dxDrawText("Porte De Armas: "..Porte, screenW * 0.3775, screenH * 0.4033, screenW * 0.6000, screenH * 0.4500, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "center", false, false, false, false, false) dxDrawText("Mandatos: "..Wanted, screenW * 0.3775, screenH * 0.4517, screenW * 0.6000, screenH * 0.4983, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "center", false, false, false, false, false) dxDrawLine(screenW * 0.3775, screenH * 0.5000, screenW * 0.5988, screenH * 0.4983, tocolor(79, 144, 241, 208), 2, false) dxDrawLine(screenW * 0.3775, screenH * 0.5483, screenW * 0.5988, screenH * 0.5467, tocolor(79, 144, 241, 208), 2, false) dxDrawText("Dinheiro Sujo: "..DinheiroSujo, screenW * 0.3787, screenH * 0.5000, screenW * 0.6012, screenH * 0.5467, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "center", false, false, false, false, false) dxDrawText("Dinheiro Limpo: "..Dinheiro, screenW * 0.3787, screenH * 0.5483, screenW * 0.6012, screenH * 0.5950, tocolor(255, 255, 255, 255), 1.00, "clear", "center", "center", false, false, false, false, false) end MotivoMulta = guiCreateEdit(x*595, y*302, x*178, y*23, "", false) guiSetAlpha ( MotivoMulta, 0.85 ) guiEditSetMaxLength ( MotivoMulta, 100) guiSetVisible ( MotivoMulta, false ) ValorMulta = guiCreateEdit(x*596, y*330, x*178, y*23, "", false) guiSetAlpha ( ValorMulta, 0.85 ) guiEditSetMaxLength ( ValorMulta, 100) guiSetVisible ( ValorMulta, false ) local bmotivo = guiCreateButton(screenW * 0.4107, screenH * 0.4805, screenW * 0.1413, screenH * 0.0299,"",false) guiSetAlpha(bmotivo,0) local bfechar = guiCreateButton(screenW * 0.4107, screenH * 0.5130, screenW * 0.1413, screenH * 0.0299,"",false) guiSetAlpha(bfechar,0) addEventHandler("onClientGUIClick",bmotivo, function () if VMultar == true then local motivo = guiGetText(MotivoMulta) local valor = guiGetText(ValorMulta) setElementData(localPlayer,"L:MotivoMulta",motivo) setElementData(localPlayer,"L:ValorMulta",valor) triggerServerEvent("L:MultouJogador",localPlayer) end end) addEventHandler("onClientGUIClick",bfechar, function () if VMultar == true then removeEventHandler("onClientRender", root, darmulta) VMultar = false showCursor(false) guiSetVisible ( MotivoMulta, false ) guiSetVisible ( ValorMulta, false ) AbrirPainelS() end end) local screenW, screenH = guiGetScreenSize() function darmulta() dxDrawRectangle(screenW * 0.3895, screenH * 0.3620, screenW * 0.1867, screenH * 0.2031, tocolor(27, 27, 27, 255), false) dxDrawText("MULTAR", screenW * 0.3902, screenH * 0.3633, screenW * 0.5761, screenH * 0.3828, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("MOTIVO:", screenW * 0.3895, screenH * 0.3958, screenW * 0.4363, screenH * 0.4232, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("VALOR:", screenW * 0.3895, screenH * 0.4297, screenW * 0.4363, screenH * 0.4570, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.4107, screenH * 0.4805, screenW * 0.1413, screenH * 0.0299, mul1, false) dxDrawText("MULTAR", screenW * 0.4107, screenH * 0.4805, screenW * 0.5520, screenH * 0.5104, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.4107, screenH * 0.5130, screenW * 0.1413, screenH * 0.0299, mul2, false) dxDrawText("VOLTAR", screenW * 0.4107, screenH * 0.5130, screenW * 0.5520, screenH * 0.5430, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) mul1 =tocolor(0, 0, 1, 255) mul2 = tocolor(0, 0, 1, 255) if isCursorOnElement(screenW * 0.4107, screenH * 0.4805, screenW * 0.1413, screenH * 0.0299) then mul1 = tocolor(0, 100, 200, 255) end if isCursorOnElement(screenW * 0.4107, screenH * 0.5130, screenW * 0.1413, screenH * 0.0299) then mul2 = tocolor(0, 100, 200, 255) end end function FecharPainelS() removeEventHandler("onClientRender",root,DxRevistar) Painel = false showCursor(false) end function AbrirPainelS() addEventHandler("onClientRender",root,DxRevistar) Painel = true showCursor(true) end function ClicarIdentidade (_,state) if Identidade == true then if state == "down" then if isCursorOnElement (screenW * 0.4114, screenH * 0.3242, screenW * 0.4275, screenH * 0.3529) then playSoundFrontEnd ( 44 ) removeEventHandler("onClientRender", root, DxIdentidade) Identidade = false AbrirPainelS() end end end end addEventHandler ("onClientClick", root, ClicarIdentidade ) function ClicarNosBotoes (_,state) if Painel == true then if state == "down" then if isCursorOnElement (screenW * 0.3624, screenH * 0.3516, screenW * 0.1603, screenH * 0.0391) then triggerServerEvent ("L:VIdentidade", getLocalPlayer(), localPlayer) playSoundFrontEnd ( 44 ) FecharPainelS() addEventHandler("onClientRender", root, DxIdentidade) Identidade = true showCursor(true) elseif isCursorOnElement(screenW * 0.3624, screenH * 0.3958, screenW * 0.1603, screenH * 0.0391) then triggerServerEvent ("L:VCNH", getLocalPlayer(), localPlayer) playSoundFrontEnd ( 44 ) elseif isCursorOnElement(screenW * 0.3624, screenH * 0.4414, screenW * 0.1603, screenH * 0.0391) then playSoundFrontEnd ( 44 ) FecharPainelS() addEventHandler("onClientRender", root, darmulta) VMultar = true showCursor(true) guiSetVisible ( MotivoMulta, true ) guiSetVisible ( ValorMulta, true ) guiSetText(MotivoMulta, "") guiSetText(ValorMulta,"") elseif isCursorOnElement(screenW * 0.3624, screenH * 0.4870, screenW * 0.1603, screenH * 0.0391) then triggerServerEvent ("L:VAlgemar", getLocalPlayer(), localPlayer) playSoundFrontEnd ( 44 ) elseif isCursorOnElement(screenW * 0.3624, screenH * 0.5313, screenW * 0.1603, screenH * 0.0391) then triggerServerEvent ("L:VRevistar", getLocalPlayer(), localPlayer) playSoundFrontEnd ( 44 ) elseif isCursorOnElement(screenW * 0.3624, screenH * 0.5768, screenW * 0.1603, screenH * 0.0391) then triggerServerEvent ("L:VDrogas", getLocalPlayer(), localPlayer) playSoundFrontEnd ( 44 ) elseif isCursorOnElement(screenW * 0.3624, screenH * 0.6224, screenW * 0.1603, screenH * 0.0391) then triggerServerEvent ("L:VArmas", getLocalPlayer(), localPlayer) playSoundFrontEnd ( 44 ) elseif isCursorOnElement(screenW * 0.3624, screenH * 0.6693, screenW * 0.1603, screenH * 0.0391) then triggerServerEvent ("L:VPrender", getLocalPlayer(), localPlayer) playSoundFrontEnd ( 44 ) end end end end addEventHandler ("onClientClick", root, ClicarNosBotoes ) 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 Vi a linha 86 e não consegui encontrar o erro... E sobre o "Iniciou_Evento" eu não manjo mt de script, pelo que parece precisa adicionar isso no clientside, porém não sei como... Poderiam me ajudar?
  7. puts, desculpa achei o erro... Estava na minha cara codigo com erro if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #00bfffTwitter ✗ #ffffff] #ffff00Fundador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffff00 "..message, player, 255, 255, 255, true) codigo sem erro if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #00bfffTwitter ✗ #ffffff] #ffff00Fundador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(thePlayer, "ID").."#ffff00)#ffffff :#ffff00 "..message, player, 255, 255, 255, true)
  8. Estou usando um MOD de chat para meu servidor RP, Porém ele está dando erro na linha 252 sendo a seguinte if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #00bfffTwitter ✗ #ffffff] #ffff00Fundador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffff00 "..message, player, 255, 255, 255, true) sendo o erro o seguinte Bad argument @'getElementData' [Expected element at argument1, got nill] em quase todas as linhas iguais a essa está dando esse erro. EDIT* Codigo da source toda -------------------------------------------------------------------------------------------- DistanciaDoChatLocal = 220 -- Metros MensagemFalandoRapidoDemaisLocal = '#ffffff[ #00ffffAnti Flood #ffffff] - #ffffffVocê Esta Digitando Muito Rapido, Aguarde 3 Segundos' ComandoDoChatADM = "g" -- Ex /g Mensagem ComandoDoChatOLX = "olx" -- Ex /olx Mensagem ComandoDoChatFRP = "frp" -- Ex /frp Mensagem ComandoDoChatTWT = "twt" -- Ex /twt Mensagem ComandoDoChatANM = "@" -- Ex /@ Mensagem ValorDoChatOLX = 500 -- Dinheiro ValorDoChatGlobal = 0 -- Dinheiro MensagemFalandoRapidoDemaisGlobal = '#ffffff[ #00ffffAnti Flood #ffffff] - #ffffffVocê está digitando muito rapido, aguarde 5 segundos.' MensagemVoceEstaMutadoGlobal = '#ffffff[ #00ffffAviso #ffffff] - #ffffffVocê está mutado, e não podera utilizar o chat.' MensagemDinheiroInsuficienteOLX = '#ffffff[ #00ffffAviso #ffffff] - #ffffffVocê precisa de #00ff00R$#ffffff '..ValorDoChatOLX..' para (Divulgar) a sua Venda neste chat.' AvisoDoValorDaMensagemOLX = '#ffffff[ #00ffffAviso #ffffff] - #ffffffO Chat custa #00ff00R$#ffffff '..ValorDoChatOLX..' para cada mensagem enviada' -------------------------------------------------------------------------------------------- -- Config do Chat Local local GRUPOS = {"Console","Admin","SuperModerator","Moderator","Everyone"} local function isPlayerInACL(player) local accName = getAccountName(getPlayerAccount(player)) for _, theGroup in ipairs(GRUPOS) do if isObjectInACLGroup("user."..accName,aclGetGroup(theGroup)) then return true end end return false end addEventHandler("onPlayerChat", root, function(tresc, msgtype) if (msgtype == 0) then cancelEvent() local IDS = getElementData(source, "ID") local x,y,z = getElementPosition(source) for key, gracze in ipairs(getElementsByType("player")) do local x2,y2,z2 = getElementPosition(gracze) if getElementData (source, "ChatLocal:Delay", true) then outputChatBox ( MensagemFalandoRapidoDemaisLocal, source, 255, 255, 255, true ) return end if ( getDistanceBetweenPoints3D ( x, y, z, x2, y2, z2 ) < DistanciaDoChatLocal ) then local int = getElementInterior ( source ) local dim = getElementDimension ( source ) local int2 = getElementInterior ( gracze ) local dim2 = getElementDimension ( gracze ) if ( int == int2 and dim == dim2 ) then conta = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #ffff00Local #ffffff] #ffff00Fundador #ffffff "..getPlayerName(source).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffff00 "..tresc, gracze, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Admin" ) ) then outputChatBox("#ffffff[ #00F5FFLocal #ffffff] #ffff00Admin #ffffff "..getPlayerName(source).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..tresc, gracze, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ffffff[ #00F5FFLocal #ffffff] #ffff00S.MOD #ffffff "..getPlayerName(source).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..tresc, gracze, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ffffff[ #00F5FFLocal #ffffff] #ffff00Moderador #ffffff "..getPlayerName(source).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..tresc, gracze, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then outputChatBox("#ffffff[ #00F5FFLocal #ffffff] "..getPlayerName(source).. " #00F5FF(#ffffffID:"..getElementData(source, "ID").."#00F5FF)#ffffff :#ffffff "..tresc, gracze, 255, 255, 255, true) end end end end end setElementData (source, "ChatLocal:Delay",true) setTimer (setElementData, 3000, 1, source, "ChatLocal:Delay", false) end) -------------------------------------------------------------------------------------------- -- Config do Chat ADM function adminchat ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then if ( isPlayerMuted(thePlayer) ) then outputChatBox ( MensagemVoceEstaMutadoGlobal, thePlayer, 255, 255, 255, true ) return end if getElementData (thePlayer, "ChatGlobal:Delay1", true) then outputChatBox ( MensagemFalandoRapidoDemaisGlobal, thePlayer, 255, 255, 255, true ) return end local money = getPlayerMoney(thePlayer) if (money < ValorDoChatGlobal ) then outputChatBox ( MensagemDinheiroInsuficienteGlobal, thePlayer, 255, 255, 255, true ) return end conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #ffff00STAFF #ffffff] #ffff00Fundador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffff00 "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Admin" ) ) then outputChatBox("#ffffff[ #00F5FFSTAFF #ffffff] #ffff00Admin #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ffffff[ #00F5FFSTAFF #ffffff] #ffff00S.MOD #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ffffff[ #00F5FFSTAFF #ffffff] #ffff00Moderador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) end end end end if not getElementData( thePlayer, "ChatGlobal:Avisado", true ) then outputChatBox ( AvisoDoValorDaMensagemGlobal, thePlayer, 255, 255, 255, true ) end setElementData ( thePlayer, "ChatGlobal:Avisado", true ) takePlayerMoney ( thePlayer, ValorDoChatGlobal ) setElementData ( thePlayer, "ChatGlobal:Delay1",true ) setTimer ( setElementData, 5000, 1, thePlayer, "ChatGlobal:Delay1", false ) end addCommandHandler ( ComandoDoChatADM, adminchat ) -------------------------------------------------------------------------------------------- -- Config do Chat OLX function adminchat ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then if ( isPlayerMuted(thePlayer) ) then outputChatBox ( MensagemVoceEstaMutadoGlobal, thePlayer, 255, 255, 255, true ) return end if getElementData (thePlayer, "ChatOLX:Delay1", true) then outputChatBox ( MensagemFalandoRapidoDemaisGlobal, thePlayer, 255, 255, 255, true ) return end local money = getPlayerMoney(thePlayer) if (money < ValorDoChatOLX ) then outputChatBox ( MensagemDinheiroInsuficienteOLX, thePlayer, 255, 255, 255, true ) return end conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #a020f0OLX ✓ #ffffff] #ffff00Fundador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffff00 "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Admin" ) ) then outputChatBox("#ffffff[ #a020f0OLX ✓ #ffffff] #ffff00Admin #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ffffff[ #a020f0OLX ✓ #ffffff] #ffff00S.MOD #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ffffff[ #a020f0OLX ✓ #ffffff] #ffff00Moderador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then outputChatBox("#ffffff[ #a020f0OLX ✓ #ffffff] "..getPlayerName(thePlayer).." #a020f0(#ffffffID:"..getElementData(thePlayer, "ID").."#a020f0)#ffffff :#ffffff "..message, player, 255, 255, 255, true) end end end end if not getElementData( thePlayer, "ChatOLX:Avisado", true ) then outputChatBox ( AvisoDoValorDaMensagemOLX, thePlayer, 255, 255, 255, true ) end setElementData ( thePlayer, "ChatOLX:Avisado", true ) takePlayerMoney ( thePlayer, ValorDoChatOLX ) setElementData ( thePlayer, "ChatOLX:Delay1",true ) setTimer ( setElementData, 5000, 1, thePlayer, "ChatOLX:Delay1", false ) end addCommandHandler ( ComandoDoChatOLX, adminchat ) -------------------------------------------------------------------------------------------- -- Config do Chat Fora do RP function adminchat ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then if ( isPlayerMuted(thePlayer) ) then outputChatBox ( MensagemVoceEstaMutadoGlobal, thePlayer, 255, 255, 255, true ) return end if getElementData (thePlayer, "ChatGlobal:Delay1", true) then outputChatBox ( MensagemFalandoRapidoDemaisGlobal, thePlayer, 255, 255, 255, true ) return end local money = getPlayerMoney(thePlayer) if (money < ValorDoChatGlobal ) then outputChatBox ( MensagemDinheiroInsuficienteGlobal, thePlayer, 255, 255, 255, true ) return end conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #00ff00Fora do RP ✗ #ffffff] #ffff00Fundador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffff00 "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Admin" ) ) then outputChatBox("#ffffff[ #00ff00Fora do RP ✗ #ffffff] #ffff00Admin #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ffffff[ #00ff00Fora do RP ✗ #ffffff] #ffff00S.MOD #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ffffff[ #00ff00Fora do RP ✗ #ffffff] #ffff00Moderador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then outputChatBox("#ffffff[ #00ff00Fora do RP ✗ #ffffff] "..getPlayerName(thePlayer).." #00FF00(#ffffffID:"..getElementData(thePlayer, "ID").."#00FF00) #ffffff : #ffffff"..message, player, 255, 255, 255, true) end end end end --if not getElementData( thePlayer, "ChatGlobal:Avisado", true ) then --outputChatBox ( AvisoDoValorDaMensagemGlobal, thePlayer, 255, 255, 255, true ) --end --setElementData ( thePlayer, "ChatGlobal:Avisado", true ) --takePlayerMoney ( thePlayer, ValorDoChatGlobal ) --setElementData ( thePlayer, "ChatGlobal:Delay1",true ) -- setTimer ( setElementData, 5000, 1, thePlayer, "ChatGlobal:Delay1", false ) end addCommandHandler ( ComandoDoChatFRP, adminchat ) -------------------------------------------------------------------------------------------- -- Config do Chat Twitter function adminchat ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then if ( isPlayerMuted(thePlayer) ) then outputChatBox ( MensagemVoceEstaMutadoGlobal, thePlayer, 255, 255, 255, true ) return end if getElementData (thePlayer, "ChatGlobal:Delay1", true) then outputChatBox ( MensagemFalandoRapidoDemaisGlobal, thePlayer, 255, 255, 255, true ) return end local money = getPlayerMoney(thePlayer) if (money < ValorDoChatGlobal ) then outputChatBox ( MensagemDinheiroInsuficienteGlobal, thePlayer, 255, 255, 255, true ) return end conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #00bfffTwitter ✗ #ffffff] #ffff00Fundador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffff00 "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Admin" ) ) then outputChatBox("#ffffff[ #00bfffTwitter ✗ #ffffff] #ffff00Admin #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ffffff[ #00bfffTwitter ✗ #ffffff] #ffff00S.MOD #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ffffff[ #00bfffTwitter #ffffff] #ffff00Moderador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then outputChatBox("#ffffff[ #00bfffTwitter #ffffff] "..getPlayerName(thePlayer).." #00bfff(#ffffffID:"..getElementData(thePlayer, "ID").."#00bfff) #ffffff : #ffffff"..message, player, 255, 255, 255, true) end end end end if not getElementData( thePlayer, "ChatGlobal:Avisado", true ) then outputChatBox ( AvisoDoValorDaMensagemGlobal, thePlayer, 255, 255, 255, true ) end setElementData ( thePlayer, "ChatGlobal:Avisado", true ) takePlayerMoney ( thePlayer, ValorDoChatGlobal ) setElementData ( thePlayer, "ChatGlobal:Delay1",true ) setTimer ( setElementData, 5000, 1, thePlayer, "ChatGlobal:Delay1", false ) end addCommandHandler ( ComandoDoChatTWT, adminchat ) -------------------------------------------------------------------------------------------- -- Config do Chat Anonimo function adminchat ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then if ( isPlayerMuted(thePlayer) ) then outputChatBox ( MensagemVoceEstaMutadoGlobal, thePlayer, 255, 255, 255, true ) return end if getElementData (thePlayer, "ChatGlobal:Delay1", true) then outputChatBox ( MensagemFalandoRapidoDemaisGlobal, thePlayer, 255, 255, 255, true ) return end local money = getPlayerMoney(thePlayer) if (money < ValorDoChatGlobal ) then outputChatBox ( MensagemDinheiroInsuficienteGlobal, thePlayer, 255, 255, 255, true ) return end conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#ffffff[ #9c9c9c@ Anônimo #ffffff] #ffff00Fundador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffff00 "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Admin" ) ) then outputChatBox("#ffffff[ #9c9c9c@ Anônimo #ffffff] #ffff00Admin #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ffffff[ #9c9c9c@ Anônimo #ffffff] #ffff00S.MOD #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ffffff[ #9c9c9c@ Anônimo #ffffff] #ffff00Moderador #ffffff "..getPlayerName(thePlayer).. " #ffff00(#ffffffID:"..getElementData(source, "ID").."#ffff00)#ffffff :#ffffff "..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then outputChatBox("#ffffff[ #9c9c9c@ Anônimo #ffffff] #ffffff"..message, player, 255, 255, 255, true) end end end end if not getElementData( thePlayer, "ChatGlobal:Avisado", true ) then outputChatBox ( AvisoDoValorDaMensagemGlobal, thePlayer, 255, 255, 255, true ) end setElementData ( thePlayer, "ChatGlobal:Avisado", true ) takePlayerMoney ( thePlayer, ValorDoChatGlobal ) setElementData ( thePlayer, "ChatGlobal:Delay1",true ) setTimer ( setElementData, 100, 1, thePlayer, "ChatGlobal:Delay1", false ) for _, staff in ipairs ( getElementsByType ( "player" ) ) do if isPlayerInACL(staff) then outputChatBox("#ffffff[ #9c9c9c@ Anônimo #ffffff] "..getPlayerName(thePlayer).."#ffffff: "..message, staff, 255, 255, 255, true) end end end addCommandHandler ( ComandoDoChatANM, adminchat ) -------------------------------------------------------------------------------------------- function isPlayerOnGroup ( thePlayer ) local account = getPlayerAccount ( thePlayer ) local inGroup = false for _, group in ipairs ( { "Everyone" } ) do if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( group ) ) then inGroup = true break end end return inGroup end --------------------------------------------------------------------------------------------
  9. o servidor está rodando na ultima versão... 1.5.7-9.20358.0 mesmo assim o ID system não está funcional
  10. E ai galera, tudo bem? Botei um sistema de ID no meu Servidor, porém ele não funciona. olhei o debug script 3 e Apareceu a o Erro na linha 25 Danilin_S.Lua:25: attempt to call global "getAccountID" (a nil value) function Start_Id ( _, acc ) if eventName == "onPlayerLogin" then setElementData ( source, "ID", getAccountID(acc) or "N/A" ) elseif eventName == "onPlayerLogout" then removeElementData( source, "ID" ) elseif eventName == "onResourceStart" then for _, player in pairs(getElementsByType("player")) do local acc = getPlayerAccount(player) if not isGuestAccount(acc) then setElementData( source, "ID", getAccountID(acc) or "N/A" ) <<<< Essa é a linha d erro end end end end addEventHandler("onResourceStart", resourceRoot, Start_Id) addEventHandler("onPlayerLogout", root, Start_Id) addEventHandler("onPlayerLogin", root, Start_Id) function getPlayerID(id) v = false for i, player in ipairs (getElementsByType("player")) do if getElementData(player, "ID") == id then v = player break end end return v end --============================================================================================================================-- --=============================-- ----------- ID PLAYER ------------ --=============================-- function getnick(player, command, id, ...) if(id) then local playerID = tonumber(id) if(playerID) then local Player2 = getPlayerID(playerID) if(Player2) then outputChatBox ( "#106FE7 #ffffffINFO #106FE7➺ #ffffff Nome do Jogador #106FE7" .. getPlayerName(Player2) .."", player, 255,255,255,true) else outputChatBox ( "#106FE7 #ffffffERRO #106FE7➺ #ffffff O Jogador(a) de ID: #106FE7( " .. id .. " ) #ffffffNão Foi Encontrado!", player, 255,255,255,true) end else outputChatBox ( "#106FE7 #ffffffERRO #106FE7➺ #ffffff ID: #106FE7( " .. id .. " ) #ffffffInválido!", player, 255,255,255,true) end else outputChatBox ( "#106FE7 #ffffffERRO #106FE7➺ #ffffffUse /id #106FE7[#ffffffID#106FE7]", player, 255,255,255,true) end end addCommandHandler("id", getnick) Help-me
  11. Funcionou irmão, muito obrigado Aprendi algumas coisas aqui s2
  12. server function AbrirArmas (thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("CHEFECF")) then ---So Mude "Armas" Grupo que vai poder abrir o painel ! triggerClientEvent(thePlayer, "painelsamu", getRootElement()) end end function AbrirArmas () if getElementData(localPlayer, "TS:Cliente") then return end if painel == false then addEventHandler ( "onClientRender", root, painelsamu ) painel = true showCursor ( true ) playSoundFrontEnd ( 43 ) setElementData(ID, "text2", "") setElementData(Preco, "text2", "") setElementData(Municao, "text2", "") Lista_Armas:SetVisible(true) Refresh_Jogadores () end end bindKey("F5", "down", AbrirArmas) -------------------------------- Funções Iniciais function IniciarVendaArmas (source, Arma_Selecionada, getID, getPreco, getMunicao, WeaponID) local Jogador = getPlayerID(getID) local Preco = tonumber(getPreco) local Municao = tonumber(getMunicao) local MunicaoAtual = getElementData(source, "TS:MuniAtual") or 0 if not Jogador then triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffJogador não encontrado!") return end if source == Jogador then triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê não pode vender arma para você mesmo!") return end --if getElementData(Jogador, "TS:Vendedor") then triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffO jogador já esta em uma negociação!") return end if tonumber(MunicaoAtual) < tonumber(getMunicao) then triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê não tem essa munição!") else local Posx, Posy, Poz = getElementPosition ( source ) local Posx1, Posy1, Pos1z = getElementPosition ( Jogador ) local Distancia = getDistanceBetweenPoints3D ( Posx, Posy, Poz, Posx1, Posy1, Pos1z ) if Distancia > 3 then triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffO jogador está muito longe!") return end setElementData(source, "TS:Cliente", Jogador) setElementData(Jogador, "TS:Vendedor", source) setElementData(source, "TS:Preco", getPreco) setElementData(source, "TS:Muni", Municao) setElementData(source, "TS:NomeArma", Arma_Selecionada) triggerClientEvent(Jogador, "TS:ConfirmacaoWeapon", Jogador) end end addEvent ("TS:IniciarVendaArmas", true) addEventHandler ("TS:IniciarVendaArmas", root, IniciarVendaArmas) function Rejeitado () local Vendedor = getElementData(source, "TS:Vendedor") if Vendedor then triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffO jogador recusou a negociação!") triggerClientEvent(Vendedor, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê rejeitou a negociação!") setElementData(Vendedor, "TS:Cliente", nil) setElementData(source, "TS:Vendedor", nil) setElementData(Vendedor, "TS:Preco", nil) setElementData(Vendedor, "TS:Muni", nil) setElementData(Vendedor, "TS:IDArma", nil) setElementData(Vendedor, "TS:NomeArma", nil) end end addEvent ("TS:Rejeitado", true) addEventHandler ("TS:Rejeitado", root, Rejeitado) function AceitarWeapon () local Vendedor = getElementData(source, "TS:Vendedor") if Vendedor then local Preco = tonumber(getElementData(Vendedor, "TS:Preco")) or 0 local Municoes = getElementData(Vendedor, "TS:Muni") or 5 local IDArmaTS = tonumber(getElementData(Vendedor, "TS:IDArma")) or 0 local NomeArma = getElementData(Vendedor, "TS:NomeArma") or "Error" local MunicaoAtual = getElementData(Vendedor, "TS:MuniAtual") or 0 local MunicaoTotalVendedor = MunicaoAtual - Municoes if getPlayerMoney(source) < Preco then triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffDinheiro Insuficiente!") triggerClientEvent(Vendedor, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffO jogador não tem dinheiro suficiente!") setElementData(Vendedor, "TS:Cliente", nil) setElementData(source, "TS:Vendedor", nil) setElementData(Vendedor, "TS:Preco", nil) setElementData(Vendedor, "TS:Muni", nil) setElementData(Vendedor, "TS:IDArma", nil) setElementData(Vendedor, "TS:NomeArma", nil) return end takePlayerMoney(source, Preco) givePlayerMoney(Vendedor, Preco) takeWeapon(Vendedor, IDArmaTS, Municoes) giveWeapon(source, IDArmaTS, Municoes, true ) setElementData(Vendedor, "TS:Cliente", nil) setElementData(source, "TS:Vendedor", nil) setElementData(Vendedor, "TS:Preco", nil) setElementData(Vendedor, "TS:Muni", nil) setElementData(Vendedor, "TS:IDArma", nil) setElementData(Vendedor, "TS:NomeArma", nil) triggerClientEvent(Vendedor, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffO jogador aceitou a negociação !") triggerClientEvent(source, "addNotification", root, "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê aceitou a negociação!") end end addEvent ("TS:AceitarWeapon", true) addEventHandler ("TS:AceitarWeapon", root, AceitarWeapon) --------- Não mecha function getPlayerID(id) v = false for i, player in ipairs (getElementsByType("player")) do if getElementData(player, "ID") == id then v = player break end end return v end client local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1366), (screenH/768) local dxfont0_icons = dxCreateFont("font/icons.ttf", x*12) local dxfont1_icons = dxCreateFont("font/icons.ttf", x*11) local ID = createElement("TS:EditBoxArmas") local Preco = createElement("TS:EditBoxArmas") local Municao = createElement("TS:EditBoxArmas") painel = false painel3 = false --[[ ><><><><><><><><><><><><><><><><><><><>< >< Painel Inicial >< ><><><><><><><><><><><><><><><><><><><>< --]] function painelsamu () exports["Blur"]:dxDrawBluredRectangle(screenW * 0.2848, screenH * 0.2839, screenW * 0.4305, screenH * 0.4323, tocolor(255, 255, 255, 230)) dxDrawRectangle(screenW * 0.2848, screenH * 0.2839, screenW * 0.4305, screenH * 0.4323, tocolor(0, 0, 0, 77), false) dxDrawRectangle(screenW * 0.2848, screenH * 0.2839, screenW * 0.4305, screenH * 0.0599, tocolor(0, 0, 0, 167), false) dxDrawLine(screenW * 0.2848, screenH * 0.3424, screenW * 0.7152, screenH * 0.3424, tocolor(5, 0, 217, 254), 3, false) dxDrawText("Enviar Armas", screenW * 0.4641, screenH * 0.2969, screenW * 0.5381, screenH * 0.3229, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) dxDrawEditBox("ID Do Jogador", screenW * 0.5124, screenH * 0.3659, screenW * 0.1559, screenH * 0.0534, false, 10, ID) dxDrawEditBox("Preço da Arma", screenW * 0.5124, screenH * 0.4648, screenW * 0.1559, screenH * 0.0534, false, 10, Preco) dxDrawEditBox("Quantidade de Munição", screenW * 0.5124, screenH * 0.5534, screenW * 0.1559, screenH * 0.0534, false, 10, Municao) if isCursorOnElement(screenW * 0.3507, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625) then dxDrawImage(screenW * 0.3507, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625, "0.png", 0, 0, 0, tocolor(5, 0, 217, 255), false) else dxDrawImage(screenW * 0.3507, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625, "0.png", 0, 0, 0, tocolor(5, 0, 217, 123), false) end if isCursorOnElement(screenW * 0.5015, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625) then dxDrawImage(screenW * 0.5015, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625, "0.png", 0, 0, 0, tocolor(5, 0, 217, 255), false) else dxDrawImage(screenW * 0.5015, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625, "0.png", 0, 0, 0, tocolor(5, 0, 217, 123), false) end dxDrawText("Enviar Arma", screenW * 0.3763, screenH * 0.6471, screenW * 0.4502, screenH * 0.6732, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) dxDrawText("Fechar Painel", screenW * 0.5234, screenH * 0.6484, screenW * 0.5974, screenH * 0.6745, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) end addEventHandler("onClientResourceStart", resourceRoot, function () Lista_Armas = dxGridW:Create(408, 278, 254, 192) Lista_Armas:AddColumn("Armas", 150) Lista_Armas:AddColumn("Muniçao", 70) Lista_Armas:AddColumn("ID", 100) Lista_Armas:SetVisible(false) end) function Refresh_Jogadores () Lista_Armas:Clear(true) for slot = 0, 12 do local Armamento = getPedWeapon ( localPlayer, slot ) local Municao = getPedTotalAmmo ( localPlayer, slot ) if Armamento > 0 then local NomeDaArma = getWeaponNameFromID ( Armamento ) Lista_Armas:AddItem(1, ""..NomeDaArma) Lista_Armas:AddItem(2, ""..Municao) Lista_Armas:AddItem(3, ""..Armamento) end end end function painelsamu2 () local Jogador = getElementData(localPlayer, "TS:Vendedor") local Preco = getElementData(Jogador, "TS:Preco") or "Error" local Municoes = getElementData(Jogador, "TS:Muni") or "Error" local IDArma = getElementData(Jogador, "TS:IDArma") or "Error" local NomeArma = getWeaponNameFromID(IDArma) dxDrawRectangle(screenW * 0.3426, screenH * 0.0130, screenW * 0.3155, screenH * 0.2578, tocolor(0, 0, 0, 123), false) dxDrawRectangle(screenW * 0.3426, screenH * 0.0130, screenW * 0.3155, screenH * 0.0560, tocolor(0, 0, 0, 162), false) dxDrawLine(screenW * 0.3426, screenH * 0.0690, screenW * 0.6589, screenH * 0.0690, tocolor(10, 0, 198, 254), 3, false) dxDrawText("Venda de Armas", screenW * 0.4605, screenH * 0.0260, screenW * 0.5527, screenH * 0.0560, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) dxDrawText("Algum jogador está querendo te vender uma "..NomeArma.." por #00FF00R$#FFFFFF "..Preco.." \ncom "..Municoes.." Munições. Você deseja:", screenW * 0.3499, screenH * 0.0820, screenW * 0.4422, screenH * 0.1120, tocolor(255, 255, 255, 255), 1.00, dxfont1_icons, "left", "top", false, false, false, true, false) if isCursorOnElement(screenW * 0.3572, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534) then dxDrawImage(screenW * 0.3572, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534, "0.png", 0, 0, 0, tocolor(10, 0, 198, 255), false) else dxDrawImage(screenW * 0.3572, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534, "0.png", 0, 0, 0, tocolor(10, 0, 198, 126), false) end if isCursorOnElement(screenW * 0.5110, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534) then dxDrawImage(screenW * 0.5110, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534, "0.png", 0, 0, 0, tocolor(10, 0, 198, 255), false) else dxDrawImage(screenW * 0.5110, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534, "0.png", 0, 0, 0, tocolor(10, 0, 198, 126), false) end dxDrawText("Comprar", screenW * 0.3865, screenH * 0.1732, screenW * 0.4348, screenH * 0.2031, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) dxDrawText("Rejeitar", screenW * 0.5410, screenH * 0.1732, screenW * 0.5893, screenH * 0.2031, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) end --[[ ><><><><><><><><><><><><><><><><><><><>< >< Configurações N Altere >< ><><><><><><><><><><><><><><><><><><><>< --]] function convertTime(ms) local min = math.floor ( ms/60000 ) local sec = math.floor( (ms/1000)%60 ) return min, sec end function FecharPainel (_,state) if painel == true then if state == "down" then if isCursorOnElement ( screenW * 0.5015, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625 ) then removeEventHandler("onClientRender", root, painelsamu ) showCursor (false) playSoundFrontEnd ( 43 ) painel = false Lista_Armas:SetVisible(false) end end end end addEventHandler ("onClientClick", root, FecharPainel ) function VenderArmas (_,state) if painel == true then if isCursorOnElement ( screenW * 0.3507, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625 ) then local getID = tonumber(getElementData(ID, "text2")) local getPreco = tonumber(getElementData(Preco, "text2")) or 0 local getMunicao = tonumber(getElementData(Municao, "text2")) or 0 local gridItem = Lista_Armas:GetSelectedItem() local Arma_Selecionada = Lista_Armas:GetItemDetails(1, gridItem, 1) or nil local MunicaoAtual = Lista_Armas:GetItemDetails(2, gridItem, 2) or nil local WeaponID = Lista_Armas:GetItemDetails(3, gridItem, 3) or nil removeEventHandler("onClientRender", root, painelsamu ) showCursor (false) playSoundFrontEnd ( 43 ) painel = false Lista_Armas:SetVisible(false) setElementData(localPlayer, "TS:IDArma", WeaponID) setElementData(localPlayer, "TS:MuniAtual", MunicaoAtual) triggerServerEvent( 'TS:IniciarVendaArmas', getLocalPlayer(), localPlayer, Arma_Selecionada, getID, getPreco, getMunicao, WeaponID) end end end addEventHandler ("onClientClick", root, VenderArmas ) painelcomprador = false function ConfirmacaoWeapon () addEventHandler("onClientRender", root, painelsamu2) end addEvent("TS:ConfirmacaoWeapon", true) addEventHandler("TS:ConfirmacaoWeapon", getRootElement(), ConfirmacaoWeapon) function ParteComprador (_,state) if state == "down" then if isCursorOnElement ( screenW * 0.5110, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534 ) then removeEventHandler("onClientRender", root, painelsamu2 ) triggerServerEvent("TS:Rejeitado", localPlayer) elseif isCursorOnElement(screenW * 0.3572, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534) then removeEventHandler("onClientRender", root, painelsamu2 ) triggerServerEvent("TS:AceitarWeapon", localPlayer) end end end addEventHandler ("onClientClick", root, ParteComprador ) 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 Sou muito leigo no assunto, desculpa kkk poderia ajudar?
  13. Tentei e não consegui.... Você poderia dar mais uma explicada?
  14. Entendi, consegui um jeito de arrumar, fiz um anti cmd simples, porém funcional. Obrigado
  15. E ai galera, blz? Queria saber se vcs poderiam me ajudar a por esse script por ACL, só quem estiver na ACL puder abrir o painel, e quem n estiver e tentar apertar a Key configurada aparecer uma msg dizendo que ele não pode abrir tal. eu tentei por editar um código, só que nada aconteceu... codigo do client abaixo. local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1366), (screenH/768) local dxfont0_icons = dxCreateFont("font/icons.ttf", x*12) local dxfont1_icons = dxCreateFont("font/icons.ttf", x*11) local ID = createElement("TS:EditBoxArmas") local Preco = createElement("TS:EditBoxArmas") local Municao = createElement("TS:EditBoxArmas") painel = false painel3 = false --[[ ><><><><><><><><><><><><><><><><><><><>< >< Painel Inicial >< ><><><><><><><><><><><><><><><><><><><>< --]] function painelsamu () exports["Blur"]:dxDrawBluredRectangle(screenW * 0.2848, screenH * 0.2839, screenW * 0.4305, screenH * 0.4323, tocolor(255, 255, 255, 230)) dxDrawRectangle(screenW * 0.2848, screenH * 0.2839, screenW * 0.4305, screenH * 0.4323, tocolor(0, 0, 0, 77), false) dxDrawRectangle(screenW * 0.2848, screenH * 0.2839, screenW * 0.4305, screenH * 0.0599, tocolor(0, 0, 0, 167), false) dxDrawLine(screenW * 0.2848, screenH * 0.3424, screenW * 0.7152, screenH * 0.3424, tocolor(5, 0, 217, 254), 3, false) dxDrawText("Enviar Armas", screenW * 0.4641, screenH * 0.2969, screenW * 0.5381, screenH * 0.3229, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) dxDrawEditBox("ID Do Jogador", screenW * 0.5124, screenH * 0.3659, screenW * 0.1559, screenH * 0.0534, false, 10, ID) dxDrawEditBox("Preço da Arma", screenW * 0.5124, screenH * 0.4648, screenW * 0.1559, screenH * 0.0534, false, 10, Preco) dxDrawEditBox("Quantidade de Munição", screenW * 0.5124, screenH * 0.5534, screenW * 0.1559, screenH * 0.0534, false, 10, Municao) if isCursorOnElement(screenW * 0.3507, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625) then dxDrawImage(screenW * 0.3507, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625, "0.png", 0, 0, 0, tocolor(5, 0, 217, 255), false) else dxDrawImage(screenW * 0.3507, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625, "0.png", 0, 0, 0, tocolor(5, 0, 217, 123), false) end if isCursorOnElement(screenW * 0.5015, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625) then dxDrawImage(screenW * 0.5015, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625, "0.png", 0, 0, 0, tocolor(5, 0, 217, 255), false) else dxDrawImage(screenW * 0.5015, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625, "0.png", 0, 0, 0, tocolor(5, 0, 217, 123), false) end dxDrawText("Enviar Arma", screenW * 0.3763, screenH * 0.6471, screenW * 0.4502, screenH * 0.6732, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) dxDrawText("Fechar Painel", screenW * 0.5234, screenH * 0.6484, screenW * 0.5974, screenH * 0.6745, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) end addEventHandler("onClientResourceStart", resourceRoot, function () Lista_Armas = dxGridW:Create(408, 278, 254, 192) Lista_Armas:AddColumn("Armas", 150) Lista_Armas:AddColumn("Muniçao", 70) Lista_Armas:AddColumn("ID", 100) Lista_Armas:SetVisible(false) end) function Refresh_Jogadores () Lista_Armas:Clear(true) for slot = 0, 12 do local Armamento = getPedWeapon ( localPlayer, slot ) local Municao = getPedTotalAmmo ( localPlayer, slot ) if Armamento > 0 then local NomeDaArma = getWeaponNameFromID ( Armamento ) Lista_Armas:AddItem(1, ""..NomeDaArma) Lista_Armas:AddItem(2, ""..Municao) Lista_Armas:AddItem(3, ""..Armamento) end end end function painelsamu2 () local Jogador = getElementData(localPlayer, "TS:Vendedor") local Preco = getElementData(Jogador, "TS:Preco") or "Error" local Municoes = getElementData(Jogador, "TS:Muni") or "Error" local IDArma = getElementData(Jogador, "TS:IDArma") or "Error" local NomeArma = getWeaponNameFromID(IDArma) dxDrawRectangle(screenW * 0.3426, screenH * 0.0130, screenW * 0.3155, screenH * 0.2578, tocolor(0, 0, 0, 123), false) dxDrawRectangle(screenW * 0.3426, screenH * 0.0130, screenW * 0.3155, screenH * 0.0560, tocolor(0, 0, 0, 162), false) dxDrawLine(screenW * 0.3426, screenH * 0.0690, screenW * 0.6589, screenH * 0.0690, tocolor(10, 0, 198, 254), 3, false) dxDrawText("Venda de Armas", screenW * 0.4605, screenH * 0.0260, screenW * 0.5527, screenH * 0.0560, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) dxDrawText("Algum jogador está querendo te vender uma "..NomeArma.." por #00FF00R$#FFFFFF "..Preco.." \ncom "..Municoes.." Munições. Você deseja:", screenW * 0.3499, screenH * 0.0820, screenW * 0.4422, screenH * 0.1120, tocolor(255, 255, 255, 255), 1.00, dxfont1_icons, "left", "top", false, false, false, true, false) if isCursorOnElement(screenW * 0.3572, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534) then dxDrawImage(screenW * 0.3572, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534, "0.png", 0, 0, 0, tocolor(10, 0, 198, 255), false) else dxDrawImage(screenW * 0.3572, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534, "0.png", 0, 0, 0, tocolor(10, 0, 198, 126), false) end if isCursorOnElement(screenW * 0.5110, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534) then dxDrawImage(screenW * 0.5110, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534, "0.png", 0, 0, 0, tocolor(10, 0, 198, 255), false) else dxDrawImage(screenW * 0.5110, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534, "0.png", 0, 0, 0, tocolor(10, 0, 198, 126), false) end dxDrawText("Comprar", screenW * 0.3865, screenH * 0.1732, screenW * 0.4348, screenH * 0.2031, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) dxDrawText("Rejeitar", screenW * 0.5410, screenH * 0.1732, screenW * 0.5893, screenH * 0.2031, tocolor(255, 255, 255, 255), 1.00, dxfont0_icons, "left", "top", false, false, false, false, false) end --[[ ><><><><><><><><><><><><><><><><><><><>< >< Configurações N Altere >< ><><><><><><><><><><><><><><><><><><><>< --]] function convertTime(ms) local min = math.floor ( ms/60000 ) local sec = math.floor( (ms/1000)%60 ) return min, sec end function AbrirArmas () if getElementData(localPlayer, "TS:Cliente") then return end if painel == false then addEventHandler ( "onClientRender", root, painelsamu ) painel = true showCursor ( true ) playSoundFrontEnd ( 43 ) setElementData(ID, "text2", "") setElementData(Preco, "text2", "") setElementData(Municao, "text2", "") Lista_Armas:SetVisible(true) Refresh_Jogadores () end end bindKey("F5", "down", AbrirArmas) function FecharPainel (_,state) if painel == true then if state == "down" then if isCursorOnElement ( screenW * 0.5015, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625 ) then removeEventHandler("onClientRender", root, painelsamu ) showCursor (false) playSoundFrontEnd ( 43 ) painel = false Lista_Armas:SetVisible(false) end end end end addEventHandler ("onClientClick", root, FecharPainel ) function VenderArmas (_,state) if painel == true then if isCursorOnElement ( screenW * 0.3507, screenH * 0.6328, screenW * 0.1127, screenH * 0.0625 ) then local getID = tonumber(getElementData(ID, "text2")) local getPreco = tonumber(getElementData(Preco, "text2")) or 0 local getMunicao = tonumber(getElementData(Municao, "text2")) or 0 local gridItem = Lista_Armas:GetSelectedItem() local Arma_Selecionada = Lista_Armas:GetItemDetails(1, gridItem, 1) or nil local MunicaoAtual = Lista_Armas:GetItemDetails(2, gridItem, 2) or nil local WeaponID = Lista_Armas:GetItemDetails(3, gridItem, 3) or nil removeEventHandler("onClientRender", root, painelsamu ) showCursor (false) playSoundFrontEnd ( 43 ) painel = false Lista_Armas:SetVisible(false) setElementData(localPlayer, "TS:IDArma", WeaponID) setElementData(localPlayer, "TS:MuniAtual", MunicaoAtual) triggerServerEvent( 'TS:IniciarVendaArmas', getLocalPlayer(), localPlayer, Arma_Selecionada, getID, getPreco, getMunicao, WeaponID) end end end addEventHandler ("onClientClick", root, VenderArmas ) painelcomprador = false function ConfirmacaoWeapon () addEventHandler("onClientRender", root, painelsamu2) end addEvent("TS:ConfirmacaoWeapon", true) addEventHandler("TS:ConfirmacaoWeapon", getRootElement(), ConfirmacaoWeapon) function ParteComprador (_,state) if state == "down" then if isCursorOnElement ( screenW * 0.5110, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534 ) then removeEventHandler("onClientRender", root, painelsamu2 ) triggerServerEvent("TS:Rejeitado", localPlayer) elseif isCursorOnElement(screenW * 0.3572, screenH * 0.1628, screenW * 0.1061, screenH * 0.0534) then removeEventHandler("onClientRender", root, painelsamu2 ) triggerServerEvent("TS:AceitarWeapon", localPlayer) end end end addEventHandler ("onClientClick", root, ParteComprador ) 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
  16. Fala galera, Tudo bem?! Então, queria uma ajudinha de vocês. Sou novato, novato mesmo Queria alguma forma de Bloquear QUALQUER TIPO DE BIND em meu servidor. E também queria desativar o F8 na tela de login e quem sabe no servidor em geral? O'que vocês me aconselham? Os players com o F8 não adianta de muita coisa... Talvez eu bloqueando o F8 em geral e só bloqueando o comando /bind Seria impossível alguém criar tal ato, certo? Caso eu esteja errado, ou não fui bem especifico, falem que eu tentarei explicar mais certinho
  17. Obrigado meu querido!!!!! Arrumei, era isso mesmo. Tinha esquecido esse pequeno detalhe!
  18. Então, elas estão sim... Já testei o debugscript 3 mas não apareceu nada em questão do mod das Tag!!!! Não quero ter que por outro MOD de tag só por causa do VIP
  19. Seguinte galera, estou usando aquele MOD "Admin-Tag-X" Tentei adicionar algumas tag de VIPs nele, porém não foi... não funciona do Alpha para baixo, as tag acima tudo OK Botei os seguintes codigos words = {} SQLS3D = { qury = executeSQLQuery } chatTime = {} lastChatMessage = {} addEventHandler("onPlayerChat", getRootElement(), function(text, msgtype, thePlayer) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) local root = getRootElement() local name = getPlayerName(source) local r,g,b = getPlayerNametagColor(source) local Account1 = getPlayerAccount ( source ) local new = "" local iter = 0 msg = string.gsub(text,"ـ","") for word in msg:gmatch("%S+") do iter = iter + 1 -- for i,swr in ipairs(words) do -- local src = word:lower():gsub("%s","") -- local src = src:gsub("#%x%x%x%x%x%x","") -- local src = src:gsub("%c","") -- local src = src:gsub("%p","") -- local pat = swr:lower():gsub("%s","") -- if src:find(pat) then -- local replaceString = "" -- for x=1,word:gsub("#%x%x%x%x%x%x",""):len() do -- replaceString = replaceString.."*" -- end -- word = word:gsub(word,replaceString) -- end -- end if iter == 1 and word:len() > 0 then word = word:gsub("%a",string.upper,1) end new = new..word.." " end if new ~= "" then msg = new end text = msg if chatTime[source] and chatTime[source] + tonumber(1000) > getTickCount() then cancelEvent() outputChatBox("Espere 1 segundo para poder digitar novamente!", source, 255, 0, 0) return else chatTime[source] = getTickCount() end lastChatMessage[source] = text local r, g, b = getPlayerNametagColor(source) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #8A2BE2Dᴏɴᴏ#ffffff ✘#000000║ - #ffffff" .. name .."#ffffff™:#8A2BE2 " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ Dono ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #00ffffS#ffffff.#00ffffMᴏᴅ#ffffff ✘#000000║ - #FFFFFF" .. name .."#ffffff™:#00ffff " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ S.Mod ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #ff0000Aᴅᴍɪɴ#ffffff ✘#000000║ - #ffffff"..name.."#ffffff™:#ff0000 " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ Admin ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #ffff00Mᴏᴅ#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff™:#ffff00 " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ Moderador ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("VIP")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #ff0000V#ffff00ɪ#00ff00P#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff™:#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ VIP ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("YOUTUBE")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #000000Yᴏᴜ#ffffff.#ff0000Tᴜʙᴇʀ#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff:#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ YOUTUBE ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("FT")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #0000ffFORCA#ffffff.#ff0000TATICA#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff:#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ FT ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("PM")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #ff0000P#ffffff.#ff0000M#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff:#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ PM ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("BOPE")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #555555BOPE#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff:#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ BOPE ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ROTA")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #555555ROTA#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff:#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ ROTA ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("PCC")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #ff0000P#ffffff.#ff0000C#ffffff.#ff0000C#ffffff ✘#000000║ - #FFFFFF"..name.."#FFFFFf:#FFFFFF "..text, root, 255, 255, 255, true) outputServerLog("CHAT: [ PCC ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("FIXA")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #00ffffF!xA#ffffff ✘#000000║ - #FFFFFF"..name.."#FFFFFf:#FFFFFF "..text, root, 255, 255, 255, true) outputServerLog("CHAT: [ FIXA ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #ff0000Jᴏ#ffff00ɢᴀᴅ#00ff00ᴏʀ#ffffff ✘#000000║ - #FFFFFF"..name.."#FFFFFf:#FFFFFF "..text, root, 255, 255, 255, true) outputServerLog("CHAT: [ Jogador ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Alpha")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #ffff00Alpha#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff:#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ Alpha ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Epsylon")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #ba55d3Epsylon#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff:#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ Epsylon ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Sigma")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #98fb98Sigma#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff:#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ Sigma ] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Omega")) then cancelEvent(true) outputChatBox("#000000║#ffffff✘ #7fffd4Omega#ffffff ✘#000000║ - #FFFFFF"..name.."#ffffff:#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ Omega ] " .. name .. ": " .. text) end end )
  20. Primeiramente, BOA NOITE!!!!! Peguei um HUD na net. bem top.... Mas a única coisa que fica chato nela é o codigo HEX aparecendo, aquele que muda a cor do nick tipo "#FFFF00-NICK' não fica só o "NICK" o codigo é o seguinte addEventHandler("onClientRender", root, function() local vida1 = math.floor(getElementHealth(getLocalPlayer())) local colete = math.floor(getPedArmor(getLocalPlayer())) local Nivel = getElementData ( localPlayer, "Level" ) or 0 local Emprego = tostring(getElementData(localPlayer,'Emprego') or "Desempregado") local realName = getPlayerName(getLocalPlayer()) local money = convertNumber(getPlayerMoney(getLocalPlayer())) local bank = convertNumber(getElementData(localPlayer, "Bank:Caixa") or "0") local Fome = getElementData(getLocalPlayer(), "AirNew:Fome") local Sede = getElementData(getLocalPlayer(), "AirNew:Sede") dxDrawRectangle(screenW * 0.9283, screenH * 0.1419, screenW * 0.0688, screenH * 0.0365, tocolor(0, 0, 0, 194), false) dxDrawRectangle(screenW * 0.8565, screenH * 0.1419, screenW * 0.0688, screenH * 0.0365, tocolor(0, 0, 0, 194), false) dxDrawRectangle(screenW * 0.8565, screenH * 0.0430, screenW * 0.1406, screenH * 0.0365, tocolor(0, 0, 0, 194), false) dxDrawRectangle(screenW * 0.8565, screenH * 0.2904, screenW * 0.1406, screenH * 0.0365, tocolor(0, 0, 0, 194), false) dxDrawRectangle(screenW * 0.9283, screenH * 0.1914, screenW * 0.0688, screenH * 0.0365, tocolor(0, 0, 0, 194), false) dxDrawRectangle(screenW * 0.8565, screenH * 0.1914, screenW * 0.0688, screenH * 0.0365, tocolor(0, 0, 0, 194), false) dxDrawRectangle(screenW * 0.8565, screenH * 0.0924, screenW * 0.1406, screenH * 0.0365, tocolor(0, 0, 0, 194), false) dxDrawRectangle(screenW * 0.8565, screenH * 0.2409, screenW * 0.1406, screenH * 0.0365, tocolor(0, 0, 0, 194), false) dxDrawLine(screenW * 0.8565, screenH * 0.1289, screenW * 0.9971, screenH * 0.1289, tocolor(0, 115, 245, 194), 3, false) dxDrawLine(screenW * 0.8565, screenH * 0.2773, screenW * 0.9971, screenH * 0.2773, tocolor(0, 115, 245, 194), 3, false) dxDrawLine(screenW * 0.8565, screenH * 0.0794, screenW * 0.9971, screenH * 0.0794, tocolor(0, 115, 245, 194), 3, false) dxDrawLine(screenW * 0.9283, screenH * 0.1784, screenW * 0.9971, screenH * 0.1784, tocolor(0, 115, 245, 194), 3, false) dxDrawLine(screenW * 0.8565, screenH * 0.1784, screenW * 0.9253, screenH * 0.1784, tocolor(0, 115, 245, 194), 3, false) dxDrawLine(screenW * 0.9283, screenH * 0.2279, screenW * 0.9971, screenH * 0.2279, tocolor(0, 115, 245, 194), 3, false) dxDrawLine(screenW * 0.8565, screenH * 0.2279, screenW * 0.9253, screenH * 0.2279, tocolor(0, 115, 245, 194), 3, false) dxDrawLine(screenW * 0.8565, screenH * 0.3268, screenW * 0.9971, screenH * 0.3268, tocolor(0, 115, 245, 194), 3, false) dxDrawImage(screenW * 0.8580, screenH * 0.0469, screenW * 0.0183, screenH * 0.0260, "deface/name.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.8594, screenH * 0.0990, screenW * 0.0168, screenH * 0.0234, "deface/maleta.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.8602, screenH * 0.2474, screenW * 0.0146, screenH * 0.0221, "deface/money.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.8602, screenH * 0.2969, screenW * 0.0168, screenH * 0.0221, "deface/card.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.8580, screenH * 0.1497, screenW * 0.0154, screenH * 0.0221, "deface/vida.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.9312, screenH * 0.1484, screenW * 0.0139, screenH * 0.0234, "deface/colete.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.8594, screenH * 0.1966, screenW * 0.0139, screenH * 0.0247, "deface/fome.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.9283, screenH * 0.1979, screenW * 0.0176, screenH * 0.0221, "deface/sede.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("Nick:"..realName, screenW * 0.8785, screenH * 0.0469, screenW * 0.9927, screenH * 0.0729, tocolor(255, 255, 255, 255), 0.90, dxfont1_icons, "left", "center", false, false, false, false, false) dxDrawText(""..Emprego, screenW * 0.8785, screenH * 0.0964, screenW * 0.9927, screenH * 0.1224, tocolor(255, 255, 255, 255), 0.90, dxfont1_icons, "left", "center", false, false, false, false, false) dxDrawText("R$"..money, screenW * 0.8785, screenH * 0.2435, screenW * 0.9927, screenH * 0.2695, tocolor(255, 255, 255, 255), 0.90, dxfont1_icons, "left", "center", false, false, false, false, false) dxDrawText("R$"..bank, screenW * 0.8785, screenH * 0.2930, screenW * 0.9927, screenH * 0.3190, tocolor(255, 255, 255, 255), 0.90, dxfont1_icons, "left", "center", false, false, false, false, false) dxDrawText(vida1.."%", screenW * 0.8741, screenH * 0.1484, screenW * 0.9209, screenH * 0.1719, tocolor(255, 255, 255, 255), 0.90, dxfont1_icons, "left", "center", false, false, false, false, false) dxDrawText(colete.."%", screenW * 0.9502, screenH * 0.1484, screenW * 0.9971, screenH * 0.1719, tocolor(255, 255, 255, 255), 0.90, dxfont1_icons, "left", "center", false, false, false, false, false) dxDrawText(Fome.."%", screenW * 0.8741, screenH * 0.1966, screenW * 0.9209, screenH * 0.2201, tocolor(255, 255, 255, 255), 0.90, dxfont1_icons, "left", "center", false, false, false, false, false) dxDrawText(Sede.."%", screenW * 0.9429, screenH * 0.1966, screenW * 0.9898, screenH * 0.2201, tocolor(255, 255, 255, 255), 0.90, dxfont1_icons, "left", "center", false, false, false, false, false) end ) Poderiam me ajudar? Se quiserem boto o client.Lua todo aqui.
×
×
  • Create New...