Jump to content

murilo2929

Members
  • Posts

    151
  • Joined

  • Last visited

Everything posted by murilo2929

  1. Gostaria de saber como posso fazer para colocar uma imagem na tela de download, ai quando o player estiver fazendo os downloads necessário para entrar no servidor a imagem fique la aparecendo.
  2. Entâo estava eu fazendo um mapa para o servidor e quando de repente coloquei esse objeto ai circulado na foto, que é uns fios de poste, mas agora não consigo remover ele por causa que não tem como clicar, teria alguma forma de eu remover ?
  3. Amigo do nada parou de funcionar, estava usando esse pickup para pegar um item toda vez que o player passasse nele e estava funcionando mas agora parou do nada e eu nao tinha mexido em nada.
  4. i use getElementModel (theVehicle) destroyElement(theVehicle) and it worked, thanks anyway.
  5. I put only in server-side and work, thanks alot One question, how i can make to when player hit marker the vehicle destroy?
  6. i'm doing in client-side, how i can do that in server-side? thanks for helping.
  7. function autoescola() triggerServerEvent("TeoriaCompleta", getLocalPlayer()) local x, y, z = testRoute[1][1], testRoute[1][2], testRoute[1][3] blip = createBlip(x, y, z, 0, 2, 0, 255, 0, 255) marker = createMarker(x, y, z, "checkpoint", 4, 0, 255, 0, 150) addEventHandler("onClientMarkerHit", marker, comecarautoescola) outputChatBox("#FF9933You are ready for the practical test. Take a DoL training machine and follow the route..", 255, 194, 14, true) local test = createVehicle(410, 1090.815, -1769.211, 13.352) setElementDimension ( getLocalPlayer, 0 ) setElementInterior ( getLocalPlayer, 0 ) warpPedIntoVehicle ( getLocalPlayer, test ) end i make like that, and don't work, what is wrong?
  8. function autoescola() triggerServerEvent("TeoriaCompleta", getLocalPlayer()) local x, y, z = testRoute[1][1], testRoute[1][2], testRoute[1][3] blip = createBlip(x, y, z, 0, 2, 0, 255, 0, 255) marker = createMarker(x, y, z, "checkpoint", 4, 0, 255, 0, 150) addEventHandler("onClientMarkerHit", marker, comecarautoescola) outputChatBox("#FF9933You are ready for the practical test. Take a DoL training machine and follow the route..", 255, 194, 14, true) local test = createVehicle(410, 1090.815, -1769.211, 13.352) warpPedIntoVehicle ( getLocalPlayer, test ) end so I used this command and the car is being created but the player is not set in it, remembering that I am in different dimension and interior.
  9. murilo2929

    Spawn car

    function autoescola() triggerServerEvent("TeoriaCompleta", getLocalPlayer()) local x, y, z = testRoute[1][1], testRoute[1][2], testRoute[1][3] blip = createBlip(x, y, z, 0, 2, 0, 255, 0, 255) marker = createMarker(x, y, z, "checkpoint", 4, 0, 255, 0, 150) addEventHandler("onClientMarkerHit", marker, comecarautoescola) outputChatBox("#FF9933You are ready for the practical test. Take a DoL training machine and follow the route..", 255, 194, 14, true) end I would like that after appearing the message saying that it is ready for the practical test, the player was spawn automatically with a car in this position =(1090.815,-1769.211, 13.352) How i can do this?
  10. function autoescola() triggerServerEvent("TeoriaCompleta", getLocalPlayer()) local x, y, z = testRoute[1][1], testRoute[1][2], testRoute[1][3] blip = createBlip(x, y, z, 0, 2, 0, 255, 0, 255) marker = createMarker(x, y, z, "checkpoint", 4, 0, 255, 0, 150) addEventHandler("onClientMarkerHit", marker, comecarautoescola) outputChatBox("#FF9933Você está pronto para o teste prático. Pegue uma máquina de treinamento DoL e siga a rota..", 255, 194, 14, true) end Eu gostaria que após aparecesse a mensagem dizendo que esta pronto para o teste pratico, o player fosse spawnado automaticamente com um carro nessa pos = (1090.815, -1769.211, 13.352 )
  11. Como eu faço para quando o player entrar no marker, spawnar um veiculo para ele?
  12. AutoEscolaMoto[source] = createVehicle( 410, 1090.8154296875, -1769.2119140625, 13.352763175964 ) setElementRotation ( AutoEscolaMoto[source], 0, 0, 0 ) setVehicleLocked ( AutoEscolaMoto[source], false ) warpPedIntoVehicle ( source, AutoEscolaMoto[source] ) eu fiz assim, ele cria o veiculo tudo certo, mas nao seta o player no veiculo, lembrand que os mesmos estao em diferentes Dimensões e Interior.
  13. Gostaria de fazer tipo assim, ele terminou de legar o dialogo ai ele vai spawnar com o carro ja tambem, tipo o carro ser criado em tal lugar.
  14. Gostaria de saber como posso fazer que após um diálogo o player seja spawnado em um determinado local com um específico carro, é para um sistema de cnh. Qual comando posso usar para fazer que o player seja setado em uma determinada loc com um veículo ?
  15. Where i can find this project? or is private?
  16. I change to dutyAllow[k] and don't work Edit: i remove the [key] and work, i just put dutyAllow. Edit2: function openDutyWindow() local availablePackages, allowList = fetchAvailablePackages(localPlayer) if #availablePackages > 0 then local dutyLevel = getElementData(localPlayer, "duty") if not dutyLevel or dutyLevel == 0 then selectPackageGUI_open(availablePackages, allowList) else triggerServerEvent("duty:offduty", localPlayer) end else outputChatBox("There is no duty available for you at this spot!") end end addCommandHandler("duty", openDutyWindow) I'm have a error with that command duty, when i type in chat /duty nothing happend
  17. Funcionou, muito obrigado.
  18. Eu coloquei o pickup e tambem não deu '-'
  19. zombiehunterpickup55555 = createPickup ( -32.76953125, -138.53125, 1003.546875, 3, 1275, 1000 ) function zombiehunterskinpickup55555 ( thePlayer ) --setPedSkin ( thePlayer, 50 ) --setPlayerTeam ( thePlayer, teamzombie ) setElementDimension ( thePlayer, 72 ) setElementInterior ( thePlayer, 16 ) setElementData ( thePlayer, "zombie", true ) end eu fiz assim e não funcionou, o que esta errado?
  20. Como faz para adicionar uma pickup dentro de interior? eu uso createPickup mas não funciona, só funciona fora de interior
  21. table.insert(servicop, { row.id, row.name, seria essa? a tabela fica no mysql
  22. [2019-07-06 00:03:05] ERRO: sistemapolicia\policiaadm.Lua:507: attempt to index local 'maxrow' (a nil value)[2019-07-06 00:03:05] sistemapolicia restarted successfully[2019-07-06 00:03:13] ERRO: sistemapolicia\policiaadm.Lua:547: attempt to index field '?' (a nil value) function getAllowList(factionID) local factionID = tonumber(factionID) if factionID then for k,v in pairs(dutyAllow) do if tonumber(v[1]) == factionID then key = k break end end return dutyAllow[key][3] --Here is appoint the error end end
  23. Perdão function dplista(factionID) local policiaid = tonumber(policiaid) if policiaid then for k,v in pairs(servicop) do if tonumber(v[1]) == policiaid then key = k break end end return servicop[key][3] --Esta apontando aqui o erro end end
×
×
  • Create New...