Jump to content

Doongogar

Members
  • Posts

    343
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Doongogar

  1. function MarkerEntregaFunction(thePlayer) if isPedInVehicle(thePlayer) then if getElementData(thePlayer, "EntregadorD") == true and getElementData(ocupado, "kombiEntregas") == true and getElementData(thePlayer, "Entregou") == false then givePlayerMoney(thePlayer, 1000) setElementVisibleTo(MarkerEntrega, thePlayer, false) setElementVisibleTo(BlipEntrega, thePlayer, false) setElementVisibleTo(MarkerEntrega2, thePlayer, true) setElementVisibleTo(BlipEntrega2, thePlayer, true) setElementData(thePlayer, "Entregou2", true) end end end addEventHandler("onMarkerHit", MarkerEntrega, MarkerEntregaFunction) erro na segunda linha tentei usar getPedOccupiedVehicle(thePlayer) e deu o mesmo erro...
  2. então ta dizendo que o argumento 2 do addEventHandler no server ta errado não to entendendo "expected element at argument 2 got nil" lado server: function MarkerEntregaFunction(thePlayer) if isPedInVehicle(thePlayer) then local ocupado = getPedOccupiedVehicle(thePlayer) if getElementData(thePlayer, "EntregadorD") == true and getElementData(ocupado, "kombiEntregas") == true then givePlayerMoney(thePlayer, 1000) destroyElement(MarkerEntrega) triggerClientEvent(thePlayer, "MarkerClientDrogas2", thePlayer) end end end addEventHandler("onMarkerHit", MarkerEntrega, MarkerEntregaFunction) lado client: function MarkerClient() MarkerEntrega = createMarker(-1191.005859375,-1062.3449707031,129.21875 - 1, "cylinder", 2.5, 69, 69, 69) end addEvent("MarkerClientDrogas", true) addEventHandler("MarkerClientDrogas", root, MarkerClient)
  3. não sei se to na seção certo, se eu n tiver perdão, mas eu queria saber como eu volto a apagar os objetos no "delete" do teclado eu troquei de pc e não ta funcionando mais
  4. como eu sei o nome dessa variavel no painel de login que uso?
  5. function inquebravel () for index, objetos in ipairs(getElementsByType("object")) do if getElementModel(objetos) == 2412 then setObjectBreakable(objetos, false) end end end addEventHandler("onClientResourceStart", root, inquebravel) addEventHandler("onClientResourceRestart", root, inquebravel) tentei assim, não da erro, porém não funciona oque ta errado?
  6. function LavarDinheiro(thePlayer, cmd, quantia) if (quantia) and (quantia >= 1000) then limpo = 75 * quantia / 100 have = exports.BVNInventario:GiveAndTakeAndGetItem("get", thePlayer, "dinheirosujo") if getElementType(thePlayer) == "player" then if isObjectInACLGroup("user." ..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ("GANG")) then if isElementWithinMarker(thePlayer, markerLava) then if not isPedInVehicle(thePlayer) then if have >= 1000 then if getElementData(thePlayer, "lavando") == false then setElementPosition(thePlayer, 2787.3779296875,-2426.3830566406,13.633763313293) setElementRotation(thePlayer, 0, 0, 179) setPedAnimation(thePlayer, "INT_HOUSE", "wash_up", -1, true, false, false) toggleAllControls(thePlayer, false) exports._infobox:addNotification(thePlayer, "Lavando#FF0000...", "info") setElementData(thePlayer, "lavando", true) setTimer(function() setPedAnimation(thePlayer, nil) toggleAllControls(thePlayer, true) setElementData(thePlayer, "lavando", false) local pagou = exports.BVNInventario:GiveAndTakeAndGetItem("take", thePlayer, "dinheirosujo", quantia) if pagou then local recebeu = givePlayerMoney(thePlayer, limpo) if recebeu then exports._infobox:addNotification(thePlayer, "Você Lavou R$:"..quantia.." Em Dinheiro Sujo Que Deram R$:"..math.floor(limpo).." em Dinheiro limpo", "money") end end end, 4000, 1, thePlayer) end else exports._infobox:addNotification(thePlayer, "Dinheiro Sujo Insuficiente", "error") end else exports._infobox:addNotification(thePlayer, "Saia do Veiculo Para Lavar o Dinheiro", "error") end end end end end end addCommandHandler("lavar", LavarDinheiro) fiz esse script de lavar dinheiro mas na segunda linha ficando dando erro dizendo que o script ta tentando comparar o numero com o valor da linha "attempt compare number with string" algo assim, poderiam me ajudar a corrigir isso? (perdão a indentação ta identado aqui mas quando passei pro site ficou meio bugado)
  7. eu fiz uma lavagem de dinheiro que retira 25% do dinheiro sujo ai 75% do valor é do player mas eu gostaria que na mensagem não aparecesse os numeros decimais
  8. eu tentei fazer sozinho mas n consegui, simplesmente n funcionava, nem dava nenhum erro
  9. eu queria saber como bloqueia os paineis quando ta na tela de login, de um jeito que n bloqueie a tecla ja que a pessoa precisa escrever ta abrindo o inventario quando escrevo
  10. então o helicopter chega a girar as helices e faz a barulheira como se fosse levantar e tbm ele se move pros lados, mas ele não sobe não aparece erro no debug e quando eu tento ligar faz o barulho de motor ligando mas continua não subindo
  11. eu queria saber se é possivel e se sim como eu faria um script pra saber qual IP mexeu no filezilla em questão de remoção/adição de arquivos, funcionaria em logs no discord, creio que n seja possivel ja que isso sai do mta, mas só to perguntando
  12. onPlayerChangeNick removeHex onPlayerJoin onPlayerChat
  13. vish, eu tlgd que pra mexer com o painel P tem que ser avançado oque não é o meu caso então eu nem tento isso eu vi que tem algumas permissões: (function.aclGroupAddObject, function.aclGroupRemoveObject, function.aclDestroyGroup) eu tentei retirar essas permissões mas não foi, não teria nenhum outro jeito?
  14. então eu crio uma função para setar um element data na pessoa ao logar então verifico se ela não tem esse element data pra poder aparecer a loadscreen?
  15. e so colocar o createobject no lado server
  16. pretendo colocar ele como if pra so aparecer a tela de download quando alguem nao ta logado tentei colocar a prioridade de download no meta mas n foi
  17. como eu exporto o "isguestaccount" pro client
  18. tem como eu tirar so o manage acl ao inves da aba resources inteira do paine P?
  19. pra que serve esse "isElement"? alias muito obrigado
  20. config = { ['Vips'] = { ---- ACL---- {'Alpha'}, {'Epsylon'}, {'Sigma'}, {'Omega'}, }, } ta assim panguei denovo a acl Alpha e Epsylon que não tava criada kkkk to pegando o jeito denovo fiquei um tempo sem pc, obrigado aos interessados
  21. addEvent('zoin.onInputPrintVip', true) addEventHandler('zoin.onInputPrintVip', root, function(player) triggerClientEvent(player, 'zoin.printPainelVip', player) for i, v in ipairs(config['Vips']) do if isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(player)), aclGetGroup(v[1])) then -- essa linha triggerClientEvent(player, 'zoin.onInsertTableVips', player, v[1]) end end end ) ta dizendo que o segundo argumento ta dando valor booleano
×
×
  • Create New...