Jump to content

THG

Members
  • Posts

    13
  • Joined

  • Last visited

Recent Profile Visitors

405 profile views

THG's Achievements

Square

Square (6/54)

0

Reputation

  1. Olá, estou com uma dúvida aki eu estou tendando codificar imagem usando encodeString porem em uma imagem minha de 3 kb ele não retorna corretamente o path para criar a textura, lendo uma conversa no discord que as vezes buga pela imagem ser leve, gostaria de saber se não existe uma outra maneira de fazer isso ou de contornar esse bug. Testei com base64Encode porem aumentou 5x o tamanho do arquivo
  2. Funcionou perfeitamente obrigado!, tinha pensando que eu tinha feito alguma coisa errada tinha até colocado versão miníma e ninguem sabia me responder o que era.
  3. I added in the meta the version specified in the wiki, but still nothing, even the result it spawning the element being true or false
  4. hello, I have a problem when using the setVehicleDoorState function, on the wiki the 4th argument that would be optional refers to a boolean value, which true it creates the door flying when removed, but even setting it to false it continues to create the element. Sorry for my bad english
  5. Olá estou tendo um problema que não estou entendendo muito bem, vi na wiki que existe um 4° argumento da função setVehicleDoorState que seria booleano, porém mesmo definindo como false ele ainda continua a criar o elemento pulando do véiculo. Pelo que eu entendi se trata de uma atualização da função, porem é da penúltima atualização 1.5.8
  6. opa tudo bom ? , gostaria de saber como posso tar fazendo para pegar o tanto de player em uma elementData para colocar em um dxDrawText , exemplo : abrir tab e mostrar em numero tanto de player na elementData
  7. você pode usar no server-side function setTaserAnim(group, anim) for _, player in pairs(getElementsByType("player", root, true)) do setPedAnimation(source, group, anim, -1, false, false, false) setTimer(setPedAnimation, 10000, 1, source) setElementData(source, "Taser", true) setTimer(function() setElementData(player, "Taser", false) end, 10000, 1 ) end end end addEvent("setTaserAnim", true) addEventHandler("setTaserAnim", root, setTaserAnim) e no client addEventHandler("onClientKey", root, function (button, press) if getElementData(getLocalPlayer(),"Taser") then if button == "F1" or button == "F2" or button == "F3" or button == "F4" or button == "F5" or button == "F6" or button == "t" or button == "m" or button == "x" or button == "u" or button == "i" or button == "o" or button == "b" or button == "x" or button == "mouse2" or button == "F9" then cancelEvent() end end end ) cFunc["anim_check"] = function(attacker, wep) if isElement(attacker) and getElementType(attacker) == "player" then if wep == 23 then cancelEvent() triggerServerEvent("setTaserAnim", source, "CRACK", "crckdeth2") end end end addEventHandler("onClientPlayerDamage", root, cFunc["anim_check"])
  8. opa tudo bom ? estou fazendo um mapa localizado no cj e presciso remover algumas casas e portas porem ja tentei remover via script via editor e nada a porta ainda continua la de nenhum modo esta removendo a porta https://imgur.com/a/xFv41Os
  9. Muito obrigado aos 2 , O do lord deu certinho porem do angelo deu mesmo erro que tava dando mais mesmo assim muito obrigado pela atenção porem por algum motivo testei heim um outro horario ele esta duplicando mais um 0 https://imgur.com/a/oMqoxhM
  10. opa tudo bom. queria fazer uma verificação até que simples porem to tendo alguns problemas , queria colocar pra se for 12 > ser pm e maior que 00 > ser am pra verificar pm e am . o código que estou utilizando é esse v. local time = getRealTime() local hours = time.hour local minutes = time.minute if (hours < 10) then hours = "0"..hours end if (minutes < 10) then minutes = "0"..minutes end if (hours > 12) then minutes = minutes.." pm" end if (hours < 12) then minutes = minutes.." am" end
×
×
  • Create New...