Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 27/04/20 in Posts

  1. O problema é que você não está renderizando a função vehicleTempo, em vez disso, você adicionou o render em uma função que vai chamar um evento do lado server, este evento, por sua vez, chamará o evento do dx, no lado cliente. Essa é a pior forma de manter o texto na tela... Um dos piores erros em script que já vi. Quando chamar o evento "vehicleTempo" adicione o evento "onClientRender" para o dxDrawText, use uma outra função para o dxDrawText, dependendo da lógica do seu código, você pode colocá-lo na função dxPanel. Edit: Não, não chegará a esse ponto de 400 vezes em 1ms (Lol), mas será muito e péssimo para a performance. Seria na verdade umas 30-60 chamadas por segundo (dependendo do FPS), pois é assim que a renderização do jogador funciona. onClientRender só é chamado quando o quadro do jogo do cliente é atualizado.
    2 points
  2. SAEG : RPG Hello there, Welcome to our server topic! we are SAEG:RPG : San Andreas Extreme Gamers ! so today i've decided to advertise our community! to everyone in MTA so that people can see what we are and what we do , especially some of our systems, we might not be the best server but we are pushing to be and with y'all help by supporting us we might just can. Some information about our community. What can you do in our server. Events Some of our features with screenshots! Server satus : OPENED Discord : https://discord.gg/UcW7WZp Server name : SAEG:RPG Forums: https://saegrpg.cc/ Version: 5.2
    1 point
  3. Truth - MTA Wiki Discord Bot Since i was in need for a wiki discord bot on a discord server, I decided to make one. I have also created a dashboard to manage the bot's setting on your guild. This bot is open source so feel free to submit PR's or issues. There is a new wiki coming soon(?), so i am planning to convert this bot to use the new version once it releases if there's no official wiki bot available at that time. I hope this bot can be of use to you. Features Wiki article fetching like on MTA's official discord Wiki article searching Function/Event examples Customizable bot output set via dashboard (hide syntax, hide description etc) Links https://truth.afusensi.xyz/ https://github.com/AfuSensi/truth-mta-wiki-bot
    1 point
  4. O que você enviou, foi todo o código do seu script, ou está pela metade? Bom, envie todo o código, para podermos te ajudar, e creio que há uma forma mais otimizada de fazer isto. Você está usando um evento de onClientRender, onde o mesmo vai envia quase 400 envios para o server-side em 1 ms. INFO WIKI : https://wiki.multitheftauto.com/wiki/OnClientRender Atenção Este evento e onClientPreRender acionarão qualquer função à qual ele esteja anexado a cada quadro. Dependendo do FPS máximo do servidor e da capacidade do seu computador - você pode acabar acionando a função 30 a 60 vezes por segundo . Como resultado, esse evento pode causar um atraso grave e / ou até travar se não for usado com cautela.
    1 point
  5. yes it is possible but the player needs to be kinda close to the area, like 600mts/units, for the collision data to load and processLineofSight or getGroundPosition to work, you can do a loop and wait for some player to be near and then trigger the function, I made a test code clientside, you can use it from far away and close to the area to see how it works: --clientside createColCuboid(-2846.07104, -1545.08484, 137.68427, 64.902099609375, 53.124267578125, 4.56259765625) function cub() math.randomseed(getTickCount()) setTimer(function() local x=-2846.07104+math.random(64)--position random from x local y=-1545.08484+math.random(53)--position random from y local h, hx, hy, hz,_,_,_,_,_,_,_,model=processLineOfSight(x,y,150,x,y,130,_,_,_,_,_,_,_,_,_,true)--check for ground position and world model if not h then return outputChatBox("player too far")--if player is too far stop execution elseif model~=18306 then cub()--if randomizer hit the house or trees try again until hit the ground return end createObject(1238,hx,hy,hz+0.4) outputChatBox("obj created in: "..hx.." "..hy.." "..hz) end,100,1)--litle delay to randomizer end addCommandHandler("cuboid",cub) you can adapt this concept to work serverside using triggers / elementdata / tables if needed
    1 point
  6. addEventHandler("onClientGUIClick ", GerarCarro, ClicarBotao) O problema está no evento dentro das ASPAS, está "onClientGuiClick ". --/> Vermelho (Espaço). Contém um espaço depois do nome do evento, remova o espaço, que o evento funcionará.
    1 point
  7. We reached 25 players today. let's reach 40 players tomorrow we will give away alot of perks and we will create a lot of fun events!!!!
    1 point
  8. I see you have optimised the loop cycles to the bone. But there is something you haven't tried yet, which can improve performance of 100 objects to a % of that, depending on the context. In your current code, you are making full cycles, which changes the usage of the resource by the amount of objects. But what if you could only make the necessary cycles? Prepare render cycle | | \/ bone_attach \ / Add each item to the queue, except for the once that are already in the render table, based on a state. QUEUE \ / Loop through 50 items each frame QUEUE [50 elements] \ / Is element streamed in? If YES, then add the item to the render table. If YES or NO, then table.remove. Give the item a state that it is already in the render table. bone_attach_render | | \/ Re-do the cycle after X ms This concept allows you to reduce big looping cycles. Which also allows you to even render 1000 objects, as long as the peds/players are not inside of the same area. These are not all the steps, there are some more which are related to 'destroyed' and 'streamed-out' elements.
    1 point
  9. Faça o seguinte, vai-a até o seu resource, e faça o seguinte : no meta.xml : <setting name="driveby_driver" value="[[ ]]"/> e no driveby_server.Lua : driver = get"driveby_driver" or { 0 },
    1 point
  10. Mostre seu código para o conseguirmos ajudar.
    1 point
  11. See this tutorial. Or attach the addEventHandler on to the resourceRoot. This will trigger the eventHandler only for elements created by the same resource.
    1 point
  12. As one of the developers behind SAES:RPG, the server in question appears to not use any leaked scripts from SAES:RPG (I did a brief check). And it's not like SAES has patented / has a trademark on the idea of our gamemode, so anyone is free to make a gamemode in the same general spirit / idea. With that said, I wish you guys the best of luck.
    1 point
  13. لأول مره في المغرب دعم بطاقة اينوي في شراء سيرفرات السيرفرات المتوفره = 100 لاعب 200 لاعب 500 لاعب 600 لاعب طبعن في سعة التخزين حجمها 2 جيجا للواحد و 16 جيجا فرام يمكنك شراء عبر التالي paypal - inwi - swa - cashyou - vodafon للتواصل على واتساب +212602313420 او على الفيسبوك https://web.facebook.com/moussino.mhd
    1 point
  14. اضافات بطلة | بالتوفيق @ععيونككء اخخر امممأليء ^
    1 point
  15. رابط المقطع لايطوفككككك لاتنسئ لايك والاشتراك ومشاهدة ممتعة !!
    0 points
×
×
  • Create New...