Jump to content

FonsecaBF

Members
  • Posts

    16
  • Joined

  • Last visited

Everything posted by FonsecaBF

  1. FonsecaBF

    Video Memory

    Hello I have a gtx 1650 with 4gb of ram but my mta is using a maximum of 1gb, as I use graphic mod I wanted to release more ram, is it possible? task Manager: https://ibb.co/vmtPjQ8
  2. Consegui resolver o problema, pode fechar esse topico se possivel
  3. function testChest() itens = exports.ws_inventory:getItens() for i = 1, #itens do local id, name, weight = itens[i][1], ""..itens[i][2], ""..itens[i][3] local getCountItem = getElementData(object_chest, name) or 0 if getCountItem >= 1 then print(""..name.. " - "..getCountItem) end end end addCommandHandler("test2", testChest) Queria saber a quantidade de item porem somente itens que tiverem 1 ou mais; "attempt to compare number with string" - este é o erro. está função está em client pois é uma função para teste e depois irei coloca em um dx
  4. local screenW, screenH = guiGetScreenSize() local selecionado = nil local tick = nil local isShopVisible = false local labelQuantidade = guiCreateEdit(0.40, 0.5675, 0.12, 0.04, "Quantidade", true) guiSetAlpha(labelQuantidade, 0) guiSetVisible(labelQuantidade, false) guiEditSetMaxLength(labelQuantidade, 3) function onStart() font1 = dxCreateFont("fontes/Roboto.ttf", 10) font2 = dxCreateFont("fontes/RobotoBold.ttf", 10) end addEventHandler("onClientResourceStart", resourceRoot, onStart)
  5. Alguem poderia me ajudar a desenvolver uma barra de busca ? seria da seguinte forma: tabela = { -- tabela que tera os nomes para serem filtrados {"Alexandre"}, {"Ana"}, {"Bruno"}, } Queria fazer por tabela para colocar os nomes a meu gosto. Quando a pessoa digitar "A" se filtra os nomes em um dxDrawText e apareceria "Alexandre e Ana" assim não aparecendo "Bruno", e caso a pessoa coloque "An" já removeria a opção de "Alexandre" na busca.
  6. Entendi essas funções que você sitou a cima ela altera a peça do veiculo, ou ela repara a peça citada do veiculo ?
  7. Olá eu queria saber se e possivel, reparar somente alguma parte especifica do veiculo exemplo, fura o pneu esquerdo dai a pessoa utiliza o comando /repararpneu1 e ele repara somente o pneu esquerdo, entre outros lugares vidro, capo, porta-malas, portas, etc.
  8. Ok, lucas obrigado pela ajuda consegui fazer oque eu queria agora, Great job.
  9. Sim isso já esta normal desde o primeiro codigo, porem eu queria que o personagem saise nao aleatorio, exemplo(eu entro em um bar e saio pela mesma por ta que entrei.) já no script ele fica aleatorizando
  10. Infelizmente não foi, mas agradeço a ajuda.
  11. Este modelo está funcionando normalmente tambem, porem como e possivel deixar para ele sair pelo mesmo lugar que entrou, exemplo eu entro em um bar e saio pela porta dele, porem ele está saindo aleatoriamente, dando spawn em qualquer localização da tabela gerando aleatoriamente Markers_Enter = { {1, 1, -25, 4, 3}, -- interior, dimensão, x, y, z {1, 2, 1, 3, 3}, -- interior, dimensão, x, y, z } Markers_Exit = { {1, 1, -27.13671875, 1.4052734375, 3.1171875}, -- interior, dimensão, x, y, z {1, 2, 27.259765625, 2.890625, 3.1171875}, -- interior, dimensão, x, y, z } Markers_Enter_House = {} for i,v in ipairs(Markers_Enter) do Markers_Enter_House = createMarker(v[3], v[4], v[5], "cylinder", 1, 0, 0, 0, 50) addEventHandler("onMarkerHit", Markers_Enter_House, function(hitElement) if getElementType(hitElement) == "player" then setElementInterior(hitElement, v[1], 222.990234375, 1289.876953125, 1082.1328125) setElementDimension(hitElement, v[2]) end end) end Markers_Exit_House = {} for i,v in ipairs(Markers_Exit) do Markers_Exit_House = createMarker(223.134765625, 1286.8, 1082, "cylinder", 1, 0, 0, 0, 50) setElementDimension(Markers_Exit_House, v[2]) setElementInterior(Markers_Exit_House, v[1]) addEventHandler("onMarkerHit", Markers_Exit_House, function(hitElement) if getElementType(hitElement) == "player" then setElementInterior(hitElement, 0, v[3], v[4], v[5]) setElementDimension(hitElement, 0) end end) end
  12. Markers_Enter = { {1, 1, -3, 4, 3}, -- interior, dimensão, x, y, z {1, 2, 1, 3, 3}, -- interior, dimensão, x, y, z } Markers_Exit = { {1, 1, -1.13671875, 1.4052734375, 3.1171875}, -- interior, dimensão, x, y, z {1, 2, 4.259765625, 2.890625, 3.1171875}, -- interior, dimensão, x, y, z } for i,v in ipairs(Markers_Enter) do Markers_Enter_House = createMarker(v[3], v[4], v[5], "cylinder", 1, 0, 0, 0, 50) addEventHandler("onMarkerHit", Markers_Enter_House, function(hitElement, dim) if getElementType(hitElement) == "player" then setElementInterior(hitElement, v[1], 222.990234375, 1289.876953125, 1082.1328125) setElementDimension(hitElement, v[2]) end end) end for _,v in ipairs(Markers_Exit) do Markers_Exit_House = createMarker(223.134765625, 1286.8, 1082, "cylinder", 1, 0, 0, 0, 50) setElementDimension(Markers_Exit_House, v[2]) addEventHandler("onMarkerHit", Markers_Exit_House, function(hitElement, dim) if getElementType(hitElement) == "player" then setElementInterior(hitElement, 0, v[3], v[4], v[5]) setElementDimension(hitElement, 0) end end) end Aqui eu estou fazendo a função de entrar e sair de um interior de uma casa, porem quando a pessoa sai da casa ela possa spawnar em qualquer posição da tabela
  13. Sorry admin, I don't know how to move this forum yet ?
  14. Olá eu estou fazendo um script aonde utiliza o mesmo interior em 2 locais separados, dentro de 1 terá 1 marker que faz alguma coisa e no outro inteiror terá outro marker que faz outra coisa, porem quando eu entro em qualquer interior o mesmo marker está la mesmo mudando a dimensão alguem poderia me ajuda ?
  15. Hello I would like to know what I could use to make a scroll bar in dx, if someone can help me what to use to do I will be very happy
×
×
  • Create New...