Jump to content

Big Smoker

Members
  • Posts

    318
  • Joined

  • Last visited

Everything posted by Big Smoker

  1. sim expliquei muito mal, pois tava loko ja, mais tava tentando explicar o meu jeito de fazer e ver o que tava errando, mais vou tentar isso irmao esssa função vai ser executada apenas para o jogador ne? nao fica pra geral?
  2. Boa Tarde, queria saber como faço para remover o bug de renderização, tenho torres modeladas no servidor e editei a área 51 só que o único problema é que ela some e o jogador que esta encima da torre aparece flutando, pq a torre "some". Já tentei ver a distancia não é. Já tentei colocar cada objeto em .Lua e executar modo server e ainda continua o Bug. Tava pesquisando no fórum e teve mais gente com esse problema, pode ser quando remove um objeto no editor de maps ele fica bugado? Não sei mais o que fazer podem me ajudar?
  3. ok, vou tentar, mais como faço pra identificar o ID do blip para deletar
  4. nao funciona ele deleta todos os blip criado exatoo nao funciona, ele deleta todas blip ja criada, e o problema
  5. bom, eu to fazendo umn painel a onde vc pode ocultar e aparecer o blip no f11(mapa), fiz um painel tudo ta tudo certinho, único problema e que quando crio o blip eu nao consigo excluir aquele blip que eu criei. quero excluir o blip sem que eu destrua os outros
  6. o que posso fazer pra fazer isso que eu quero
  7. para retornar. pois eu preciso que ele nao crie mais o blip depois de criado. e tenho que fazer uma função depois deletando ele. so caso desativando a caixinha para sumir o blip
  8. for i,blip3 in pairs(getElementsByType("blip"))do if (isElement (blip3)) then -- Se o blip3 já existe, então: return false end end assim? olha a imagem https://ibb.co/HrRQ6Wm
  9. mais continuo usando o for i,blip3 in pairs(getElementsByType("blip"))do
  10. nao sei eu acabei colocando coisas tentando interpretar. Mais quero colocar uma função a onde nao deixa criar o mesmo blip
  11. então quero fazer isso, como que eu faço? eu nao consegui eu tentei isso aqui for i,blip3 in pairs(getElementsByType("blip"))do if not(tonumber(getElementData(getLocalPlayer(),"setBlips_22")) ~= tonumber(BlipType)) and not (tonumber(getElementData(getLocalPlayer(),"setBlips_6")) ~= tonumber(BlipType)) and not(tonumber(getElementData(getLocalPlayer(),"setBlips_18")) ~= tonumber(BlipType)) and not(tonumber(getElementData(getLocalPlayer(),"setBlips_42")) ~= tonumber(BlipType))then if isElement(blip3) then destroyElement(blip3) blip3 = false end setElementData(getLocalPlayer(),"setBlips_"..tostring(BlipType),false) end -- end end
  12. essa função aqui addEvent("blipsMaps",true) addEventHandler("blipsMaps",getRootElement(),function(BlipType) for i,blip3 in pairs(getElementsByType("blip"))do if not(tonumber(getElementData(getLocalPlayer(),"setBlips_22")) ~= tonumber(BlipType)) and not (tonumber(getElementData(getLocalPlayer(),"setBlips_6")) ~= tonumber(BlipType)) and not(tonumber(getElementData(getLocalPlayer(),"setBlips_18")) ~= tonumber(BlipType)) and not(tonumber(getElementData(getLocalPlayer(),"setBlips_42")) ~= tonumber(BlipType))then if isElement(blip3) then destroyElement(blip3) blip3 = false end setElementData(getLocalPlayer(),"setBlips_"..tostring(BlipType),false) end -- end end if tonumber(BlipType) then if not blips2 then blips2 = {} end for i, blip in ipairs(blips) do if BlipType == blip[4] then blip2 = createBlip(blip[1],blip[2],blip[3],blip[4]) setBlipVisibleDistance(blip2, 800) setElementData(getLocalPlayer(),"setBlips_"..tostring(blip[4]),blip[4]) end end end end) essa é uma função mais atualizada, ela nao deixa eu colocar todos os blip ai coloquei aquele detroyElement(blip3) para remover o mesmo que ja foi setado mais nao deu certo pq nao seleciona para os outros OBS: O BlipType ele é o ID do clip que chega ate a função que eu coloquei quando vc clica na caixinha ai manda o ID exemplo: triggerEvent("blipsMaps",getLocalPlayer(),18) TUDO EM MODO CLIENT. E ELE DEVE APARECER APANAS PARA O JOGADOR
  13. Ele é um painel a onde tem varias cordenadas de cada ID, EXEMPLO: 3 cordenadas do hospital, 2 cordenandas de pistola ai tem uma tabala a onde ta todas as coordenadas que executa ela, so coloquei que ele pode escolher qual ID ele quer que apareça (hospital ou pistola), ou os dois juntos https://ibb.co/0V4dsRd so que quando vc clica varias vezes no botão ele cria varias vezes aquele meio blip. e quando escolho outro blip eXEMPLO O hospital ele some o outro meu. ai vim aqui pedir ajuda no forum pq nao consegui arruma iss. nao sei se eu uso o createclip ou o createBlipAttachedTo
  14. eu fiz um painel de blip no F11(MAPA), e quero colocar a onde o player pode escolher o que quer que apareça no mapa de blip ai fiz uma tabela blips = { {960.29791259766,2070.4409179688,10.8203125, 42}, {-2652.4165039063,636.17047119141,14.453125, 22}, } essa função aqui executa ela blipsRad = {} addEvent("blipsMaps",true) addEventHandler("blipsMaps",getRootElement(),function(BlipType) if blipsRad then for i,blip in pairs(blipsRad)do destroyElement(blip) end blipsRad = false end if tonumber(BlipType) then if not blipsRad then blipsRad = {} end for i, blip in ipairs(blips) do if BlipType == blip[4] then blip2 = createBlip(blip[1],blip[2],blip[3],blip[4]) setBlipVisibleDistance(blip2, 800) table.insert(blipsRad,blip2) end end end end) O problema que a cada click que eu dou, ele cria mais blip no mapa, e não deixa eu criar mais blip selecionado no painel apenas os que aparece. É meio confuso.
  15. Boa Noite, to fazendo um painel de blip para mostrar no mapa, ativar / desativar para cada player so que to tendo problema na hora de destruir o blip de determinado ID, nao todos os blip´s -- CLIENT PARA CRIAR O BLIP blips = { {960.29791259766,2070.4409179688,10.8203125, 42}, {-2652.4165039063,636.17047119141,14.453125, 22}, } blipsRad = {} addEvent("blipsMaps",true) addEventHandler("blipsMaps",getRootElement(),function(BlipType) if blipsRad then for i,blip in pairs(blipsRad)do destroyElement(blip) end blipsRad = false end if tonumber(BlipType) then if not blipsRad then blipsRad = {} end for i, blip in ipairs(blips) do if BlipType == blip[4] then blip2 = createBlip(blip[1],blip[2],blip[3],blip[4]) setBlipVisibleDistance(blip2, 800) table.insert(blipsRad,blip2) end end end end) PRECISAVA SABER QUAL PRECISO CRIAR PARA DESTRUIR A BLIP DE DETERMINADO ID.
  16. poderia me dizer qual dessas aqui é pra diminuir o dano dele? setVehicleHandling (v, "mass", 300.0) setVehicleHandling(v, "turnMass", 200) setVehicleHandling(v, "dragCoeff", 4.0 ) setVehicleHandling(v, "centerOfMass", { 0.0,0.08,-0.09 } ) setVehicleHandling(v, "percentSubmerged", 103) setVehicleHandling(v, "tractionMultiplier", 1.8) setVehicleHandling(v, "tractionLoss", 1.0) setVehicleHandling(v, "tractionBias", 0.48) setVehicleHandling(v, "numberOfGears", 5) setVehicleHandling(v, "maxVelocity", 300.0) setVehicleHandling(v, "engineAcceleration", 90.0 ) setVehicleHandling(v, "engineInertia", 5.0) setVehicleHandling(v, "driveType", "rwd") setVehicleHandling(v, "engineType", "petrol") setVehicleHandling(v, "brakeDeceleration", 20.0) setVehicleHandling(v, "brakeBias", 0.60) -----abs---- setVehicleHandling(v, "steeringLock", 35.0 ) setVehicleHandling(v, "suspensionForceLevel", 0.85) setVehicleHandling(v, "suspensionDamping", 0.15 ) setVehicleHandling(v, "suspensionHighSpeedDamping", 0.0) setVehicleHandling(v, "suspensionUpperLimit", 0.15 ) setVehicleHandling(v, "suspensionLowerLimit", -0.16) setVehicleHandling(v, "suspensionFrontRearBias", 0.5 ) setVehicleHandling(v, "suspensionAntiDiveMultiplier", 0.0) setVehicleHandling(v, "seatOffsetDistance", 0.0) setVehicleHandling(v, "collisionDamageMultiplier", 0.00) --setVehicleHandling(v, "monetary", 10000) This one is disabled for now setVehicleHandling(v, "modelFlags", 1002000) setVehicleHandling(v, "handlingFlags", 1000002)
  17. Bom Dia, Alguém me ajuda, meu servidor quando passa uns 4 dias ligado direto, do nada ele pega e cai ontem mesmo no dia [2019-11-30 00:51:39] , e não aparece erros no logs, só esses aqui 019-11-30 00:46:02] DIAGNOSTIC: LeoNarDo #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [admin\conf\interiors.xml] [2019-11-30 00:46:02] DIAGNOSTIC: LeoNarDo #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [admin\conf\weathers.xml] [2019-11-30 00:46:02] DIAGNOSTIC: LeoNarDo #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [admin\conf\upgrades.xml] [2019-11-30 00:46:28] LOGIN: (Everyone) LeoNarDo successfully logged in [2019-11-30 00:47:17] CONNECT: Coelo connected [2019-11-30 00:47:32] QUIT: Coelo left the game [Timed out] [2019-11-30 00:48:03] KICK: |IRM|~X~ was kicked from the game by Console (PingFPSKick: Your FPS(10.1) was too low!) [2019-11-30 00:48:20] CONNECT: |IRM|~X~ connected [2019-11-30 00:48:22] JOIN: |IRM|~X~ joined the game [2019-11-30 00:49:18] CONNECT: Sr^~[P]assos connected [2019-11-30 00:49:22] JOIN: Sr^~[P]assos joined the game [2019-11-30 00:49:28] CONNECT: Coelo connected [2019-11-30 00:49:28] LOGIN: (Everyone) |IRM|~X~ successfully logged in [2019-11-30 00:49:33] JOIN: Coelo joined the game [2019-11-30 00:49:35] CONNECT: theVaderxd connected [2019-11-30 00:49:36] JOIN: theVaderxd joined the game [2019-11-30 00:49:47] DIAGNOSTIC: Sr^~[P]assos #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [admin\conf\interiors.xml] [2019-11-30 00:49:47] DIAGNOSTIC: Sr^~[P]assos #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [admin\conf\weathers.xml] [2019-11-30 00:49:47] DIAGNOSTIC: Sr^~[P]assos #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [acpanel\c_joiner.Lua] [2019-11-30 00:49:53] DIAGNOSTIC: Coelo #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [acpanel\c_main.Lua] [2019-11-30 00:49:53] DIAGNOSTIC: Coelo #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [acpanel\_common.Lua] [2019-11-30 00:49:53] DIAGNOSTIC: Coelo #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [acpanel\c_joiner.Lua] [2019-11-30 00:50:55] QUIT: #000000Smash left the game [Quit] [2019-11-30 00:51:12] DIAGNOSTIC: theVaderxd #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [admin\conf\interiors.xml] [2019-11-30 00:51:13] DIAGNOSTIC: theVaderxd #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [admin\conf\weathers.xml] [2019-11-30 00:51:13] DIAGNOSTIC: theVaderxd #1011 External HTTP file mismatch (Retrying this file with internal HTTP) [admin\conf\upgrades.xml] [2019-11-30 00:51:35] QUIT: |MY|MeRE left the game [Quit] [2019-11-30 00:51:39] CONNECT: |MY|MeRE connected [2019-11-30 00:51:39] JOIN: |MY|MeRE joined the game
  18. Bom Dia, Pessoal alguem sabe me dizer como eu posso remover um bug que da na renderização dos objetos modelados? Esse erro de renderização é de longe o player ta numa torre mais vc mira nele e ele ta flutando no ar, nao renderizando o objeto, ai me falaram que precisa excluir as arvores do deserto que esse bug sai, pois essas arvores tem uma animação de se mexer ai queria saber como posso remover essas arvores do deserto
  19. Bom Dia, preciso de uma ajuda com um script to tentando fazer com que o player so pode digitar um comando se tiver dentro da marker, mais se tiver outra col perto ele acerta mesmo assim eu queria apenas se tiver dentro da "createColSphere" ---- SERVER.Lua modelX, modelY, modelZ = 1805.3284,-1131.8,23.1 modelX2, modelY2, modelZ2 = 1835.68,-1122.89,51.85 themarker = createMarker ( modelX, modelY, modelZ , "cylinder", 1.5, 254, 0, 0, 170 ) themarker2 = createMarker ( modelX2, modelY2, modelZ2 , "cylinder", 1.5, 254, 0, 0, 170 ) showLegend = createColSphere ( modelX, modelY, modelZ+1, 1.6 ) showLegend2 = createColSphere ( modelX2, modelY2, modelZ2+1, 1.6 ) addEventHandler("onColShapeHit",getRootElement(),function(hitElement,matchingDimension) if (themarker and showLegend) or (themarker2 and showLegend2) then if getElementType(hitElement) == "player" then outputChatBox("ENTROU",hitElement) setElementData ( hitElement, "playerMarkerBase", true ) end end end) addEventHandler("onColShapeLeave",getRootElement(),function(hitElement,matchingDimension) if (themarker and showLegend) or (themarker2 and showLegend2) then if getElementType(hitElement) == "player" then outputChatBox("SAIU",hitElement) setElementData ( hitElement, "playerMarkerBase", false ) end end end) addCommandHandler("pass", function(player,cmd,type) if getElementData(player,"playerMarkerBase") == true then if tonumber(type) == 4222 then ------- DENTRO DA BASE outputChatBox("ATIVO",player) setElementPosition ( player,modelX, modelY, modelZ) elseif tonumber(type) == 5222 then --- NO TET outputChatBox("ATIVO 2",player) setElementPosition ( player, modelX2, modelY2, modelZ2 ) end end end)
  20. essa função é um elemento que é usado no macro e queria desativar essa função para nao usar no servidor
  21. como faço para desativar esse tiopo de função no servidor do MTA? tem alguma função? SetKeyDelay
  22. Bom Dia, Queria saber qual é a função que usa para atravessar um objeto criado, um exemplo o corpo ped. você passa e atravessa o personagem
  23. estou com um problema nela, nao ta funcionando 100% eu coloco o hitElement ele pega as vezes o tiro fiz ate um teste aqui mais quando uso o element da função ele funciona certinho addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), function(wap,mag,ClipM,x,y,z,element,startX, startY, startZ) hitElement, x, y, z, elementHit, nx, ny, nz, mat, light, bodypart = processLineOfSight ( startX, startY, startZ, x, y, z, false, false, true) if (hitElement) then if (getElementType (element) == "player") then if bodypart == 9 then outputChatBox("HEADSHOT") else outputChatBox("Acerto") end end else outputChatBox("FORA DO HIT") end end) ELE APARECE A MENSAGEM "FORA DO HIT" e tipo quero que ele pega certeiro o HS e no peito sem que apareça o "FORA DO HIT" ele falha as vezes ele fica como nil
×
×
  • Create New...