Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/06/19 in all areas

  1. O MTA é capaz de carregar sim! Como eu disse, é necessário ativar o SD #22 e #23 para que eles sejam carregados de forma correta. Para carregar uma imagem com o formato YUV, por exemplo, ao invés de usar o dxDrawImage, a princípio você irá usar o dxCreateTexture, daí sim você irá carregar no dxDrawImage. Já com arquivos de áudio, é um pouco mais complexo. Você irá converter o áudio (criptografando-o). Para carregar o áudio, você terá de fazer a conversão inversa. Digamos que você converteu um arquivo de áudio de MP3 para CMF (não é lido pelo MTA). Para convertê-lo e fazer o MTA ler, você irá converter de CMF para MP3, obter a data/resultado do fetchRemote, gerar um arquivo aleatório com a extensão .mp3, incluir neste arquivo o resultado obtido. Após isso, adicionar no meta.xml e carregar o áudio onde quiser. (lembrando que após o carregamento do áudio, você deve deletá-lo do cache/pasta e retirá-lo do meta.xml)
    1 point
  2. 1 point
  3. It's already attached to onClientRender within render events.
    1 point
  4. @majqq hmm I just wondering how your code works. Shouldn't this make more sense? -- loop with problem local insertCol = true for i = 1, #playerTable.player.savedcols do local saved_col = playerTable.player.savedcols[i] if saved_col == colshape then outputChatBox("saved_col == colshape, break") insertCol = false break -- uhm, should break and not add colshape to table? end end if insertCol then table.insert(playerTable.player.savedcols, colshape) -- in case of any questions, i tried to add condition here but that doesn't help end
    1 point
  5. 1 active timer = setTimer 1 active timer + dx countdown = getTickCount 500+ active timers = (getTickCount or 1 global setTimer ) passive timers = getTickCount It depends on the quantity, precision and the functionality you want to use next to it. And yes with onClientRender you have to mind reducing the check amount. I can send you an example how I build my global lua timer, if you want.
    1 point
  6. تاكد ان وظائف إعطاء الفلوس او سحبها بجانب السيرفر مو بـ الكلنت Server Side
    1 point
  7. Files seems to be removed, but the way to reach is to change ur PC date to 2016
    1 point
  8. للاسف لسه تظهر العلامه لو الكلان None انظر تحت بتلاقي الشخص الكريم مخليه مترتب
    1 point
  9. 1 point
  10. The keyword break does not stop the code block from executing. It only stops the next loops.
    1 point
  11. Olá. Sobre proteção de scripts, a melhor forma, em minha opinião, é usando fetchRemote + SMS/E-mail. O script só será ativado se o responsável pelo número de telefone ou e-mail aceitar que ele seja ligado, recebendo um código ou algo do gênero. Se você deseja criptografar arquivos como áudios (.mp3, .ogg, .cmf), imagens (.png, .jpg), shaders (.fx), o que eu recomendo e uso até hoje, é esta API: https://developers.convertio.co/pt/. É necessário algum conhecimento para trabalhar com este. (E lembrando que para fazer isso, é preciso ativar o SD #22 e #23, dentro do seu servidor, para que arquivos com extensões desconhecidas pelo MTA sejam carregadas.)
    1 point
  12. That's probably what you mean: function setTeamCmd( player ) local team = getPlayerTeam(player) if team and getTeamName(team) == "Law Enforcement" then addPedClothes ( player, "policetr", "policetr", 17 ) end end addCommandHandler ( "cloth", setTeamCmd ) It's hard to figure out what you want to achieve because you didn't explain it at all. Next time you ask for help provide some informations, it's not always that someone will give you the full code.
    1 point
  13. Thanks. BSOD is occuring in epp.sys which is from Emsisoft Anti-Malware Try whitelisting gta_sa.exe and proxy_sa.exe in Emsisoft
    1 point
  14. blip={}; addEventHandler("onVehicleEnter",root, function(thePlayer) if (getElementModel(source)==520) then if not (blip[source]) then blip[source]=createBlipAttachedTo (source); end end end ); addEventHandler("onVehicleExit",root, function(thePlayer) if (getElementModel(source)==520) then if (blip[source]) then local destroy=destroyElement(blip[source]); if not (destroy) then blip[source]=nil; end end end end );
    1 point
  15. 1 point
  16. السلام عليكم ورحمة الله وبركاته أقدم لكم اليوم أخر مشاريعي وأفضلها بالنسبة لي وأصعبها, حيث استغرق مني هذا العمل الضخم 20 يوم و 1600 سطر وهو عبارة عن لوحة أدمنية خارجية تمكنك من التحكم بالسيرفر بدون تشغيل اللعبة والدخول للسيرفر, وبالنسبة لي سيكون مفيد جداً وأسرع C# - LUA : لغات البرمجة : مقطع توضيحي للبرنامج : ملاحظات أولاً : لا تغير اسم السكربت ولا ما راح يشتغل البرنامج ثانياً : السكربت يحتاج صلاحيات ادمن ثالثاً : للتعديل على القروبات أو الصلاحيات راجع ملف الميتا التحميل : اضغط هنا للتبليغ عن الأخطاء أو الاقتراحات أو المشاكل تفضل بالأسفل أو الرسائل الخاصة مع تحياتي لكم
    1 point
  17. Well, a simple script that show on the screen a grenade indicator, i made it 6 years ago and i no longer uses it so i decided to share it. Download: https://community.multitheftauto.com/?p=resources&s=details&id=16021
    1 point
  18. اخوي أولا انا ما حكيت عنك بشكل خاص انا حكيت بشكل عام معظم شركات الاستضافة هيك ثانيا انتا بتحكي كزبون لازم تكون عارف هذا الشي . اتقي الله يا اخ لانه ما حد بعرف الشركات تكون مخبية انا اشتغلت بشركة ديلوكس هوست كانوا يحكوا الباندويث unlimited بس ما كان هيك وكان أي سيرفر يستعمل كثير ترافيك يحذفواه حتى من ناحية الأداء خذ مثلا هدف هوست كانوا مشغلين على الأقل 10 سيرفرات على خادم 1 الرام عليه كانت 4 جيجا وحكوا انه محمي وما كان محمي بالنسبة للvps فهو أرخص من اي استضافة اذا حسبتها اخوي ما تنكر معظم شركات الاستضافة خصوصا اللي للألعاب نصابة
    1 point
  19. +1 الفلوس في الكلينت سايد وهميه
    0 points
  20. I agree with people who say this is garbage, I played a bit and most of scripts are just made by OwlGaming, I dont quite see any originality in scripts. But worst part that noone is friendly in server
    0 points
×
×
  • Create New...