Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 23/12/20 in Posts

  1. Hi. We hope that all of you are safe and healthy. The year of 2020 is finally coming to an end, so here is our traditional "A year in Recap" post for you. Below you can find the summary of what has happened during this year and a handful of other things that might be interesting to you. 2020 in Recap Surely, it is hard to mention this year without mentioning the COVID-19 pandemic. Many lives were lost and millions of people had to deal (and still cope) with the consequences of the disease. The pandemic had locked many of us down in our homes and forced us t
    21 points
  2. Hi MTA community recently I was browsing the useful functions list and I saw a new and interesting function available from version 1.5.8 r20704 onwards: attachElementToBone() and using the "onClientPedsProcessed" event. After seeing that this function gives better accuracy and better performance than 'bone_attach' resource I told myself why not making a new bonne attach resource, so this is what I did basically just using the function and the event I just created a synchronization between client and server with tables. Thank you to Einheit-101 and Saml1er for they’r hard work. Also thank
    6 points
  3. pAttach version 1.1 Optimized bone attach thanks to the new MTA functions/events. This resource doesn't match with well known bone_attach, you can not use the same parameters! Exported Functions (shared) attach - This function attaches an element to the bone of the ped or player. detach - This function detaches an element from the bone of the ped or player. detachAll - This function detaches every elements from the bone of the ped or player. setPositionOffset - This function changes position offset of attached element. setRotationOffset - T
    5 points
  4. Hi. With the most recent update we are now able to hijack vehicles and take npc peds out of vehicles. I took the opportunity to edit MTA's traffic resource and add a working traffic system to MTA! I'm planning on using it in my own server once it launches. What can we do with it? * How many traffic vehicles will spawn depends on the online player count. * Each player will add a few vehicles to global vehicle limit. * You can set a hard cap so that even if we have too many players, we won't exceed a certain vehicle count. * Vehicles will spawn in locations where there are player
    5 points
  5. 3 points
  6. Hey, 2 years in recap :) thanks for considering me!
    3 points
  7. This server still goes strong after all these years! @Einheit-101 epic server!
    2 points
  8. Com o crescimento de qualquer projeto, seja de MTA ou o quê for, cresce também a inveja de muitos e a preocupação dos principais concorrentes. É muito comum tentarem desacelerar e inibir o crescimento do outro perante o medo. O quê muita gente não sabe é que na maioria das vezes, os servidores não são derrubados por DDoS ou DoS. Ataques DDoS demandam grandes quantidades de dinheiro investido, e nessa guerra digital, vence quem tem a melhor infraestrutura, ou seja, quem gasta mais.. Mas se a maioria das quedas ou interferência nos servidores não acontecem por ataque de negação de serv
    2 points
  9. Hi, I'll showcase in this post the custom maps & 3D models that are available on the San Andreas Roleplay server (you can find the link for + info in my signature). 1. New roads near Angel Pine Remodelled the mountain terrain near the Angel Pine junkyard adding a paved road and a dirt road next to it. Seamless textures. Fits the game's atmosphere. Perfect collisions. BEFORE: AFTER: 2. New Palomino wooden bridge Remodelled the Palomino terrain that includes: - a wooden bridge that has flawless collisions and perfect textur
    2 points
  10. @Otavionão se usa source como parâmetro de função. @[C]outofaça o script server-side, com onVehicleExit e utilizando o parâmetro do assento para saber se foi o motorista que saiu do veículo. function desblindar (thePed, seat) if (seat == 0) then if (getElementData (thePed, "Modo Passivo")) then setVehicleDamageProof (source, false) outputChatBox ("Seu veículo agora está destrutível.", thePed) end end end addEventHandler ("onVehicleExit", root, desblindar)
    2 points
  11. It would be nice to mention that's possible due of work of @Einheit-101 and @Saml1er
    2 points
  12. function CandidatarEmpregoGerente() -- VOCÊ NÃO PRECISA ARGUMENTAR LEVEL SE VOCÊ COLOCOU EM BAIXO NO IF LEVEL >= 50 local Level = getElementData(source, "Level") or 0 if Level >= 50 then triggerClientEvent(source, "PerguntasGerente", getRootElement()) setElementData(source, "QuestaoAGENCIA", 1) setElementData(source, "Resposta", nil) end end addEvent("CandidatarEmpregoGerente", true) addEventHandler("CandidatarEmpregoGerente", getRootElement(), CandidatarEmpregoGerente) triggerEvent("CandidatarEmpregoGerente",source) ou triggerServerEvent("CandidatarEmpregoGerente",localPlayer
    2 points
  13. Um cliente não consegue se comunicar com outro sem o servidor. Logo, todas as variáveis client-side são visíveis somente por ele e não pelos outros.
    2 points
  14. Trabalhos = { {"Pescaria", 0, "Nenhuma"}, -- Emprego, Level, Habilitação {"Lixeiro", 0, "Nenhuma"}, -- Emprego, Level, Habilitação {"Carregador", 5, "Nenhuma"}, -- Emprego, Level, Habilitação {"Sedex", 10, "B"}, -- Emprego, Level, Habilitação {"Pizzaboy", 15, "A"}, -- Emprego, Level, Habilitação {"Uber", 20, "B"}, -- Emprego, Level, Habilitação {"Caminhoneiro", 25, "D"}, -- Emprego, Level, Habilitação {"Mecanico", 35, "C"}, {"Mineirador", 50, "Nenhuma"}, {"Detran", 70, "C"}, {"SAMU", 100, "C"}, {"PMESP", 200, "Nenhuma"}, {"PRF", 300, "Nenhuma"}, } Faltou vírgula dep
    2 points
  15. Cool. Hope u guys can resurrect roleplaying in MTA. RP in gta 5 is boring. Good luck boiz.
    2 points
  16. Coucou, Il faut supprimer l'objet qui correspond aux lumières pendant la nuit de ton bâtiment via un petit removeWorldModel ( int modelID, float radius, float x, float y, float z [, int interior = -1 ] ) Si tu ne connais pas l'ID de ton bâtiment, @Zorgman a écrit un petit bout de code (post ici) qui retire la plupart des lumières de nuit. Je le reposte ici : local objtoremove = {9934,9933,9932,9886,6196,6195,6194,6193,6192,5059,5058,5057,4222,4221,4220,4219,4218,4217, 4216,4215,4214,4213,4212,13493,13485,13484,13461,10147,10146,10058,10057,4715,4716,4717,4720
    2 points
  17. @Looktovask Recomendo que não dependa de Grupos de ACL. Além de não ser muito convencional para o seu caso, ele pode lagar se houver abusos. Indico que trabalhe com os teams do MTA ou crie um próprio.
    2 points
  18. Qual é a origem daquele type? E está faltando um 'end'
    2 points
  19. function onClick(button, state) if button == "left" then if state == "down" then tick = getTickCount() elseif state == "up" then if (getTickCount() - tick) >= 3000 then --PROSSIGA SEU SCRIPT AQUI else outputChatBox("Você precisa pressionar o botão por 3 segundos") end end end end addEventHandler("onClientClick", root, onClick)
    2 points
  20. @Boechatmuito bem !. Mas deixarei um exemplo aqui usando o elemento 'player' no getElementsByType(). Vamos supor que desejamos puxar um player pelo seu ID, então faremos assim: print(getPlayerName(getPlayerFromID(23))) -- aqui daremos um print no nome do player que tem o id 23. function getPlayerFromID(ID) -- aqui é a function que puxa o player pelo ID v = false -- aqui criamos uma variavel que atribuimos o valor boolean 'false' for INDICE, VALOR in ipairs (getElementsByType('player')) do -- aqui iniciamos um loop de todos os players if getElementData(VALOR, "ID") == ID then -- a
    2 points
  21. السلام عليكم ورحمة الله وبركاته.. شخباركم؟ عساكم بخير يارب اليوم جايب لكم لبس دوريات الأمن مسويه من سنتين تقريبا ولا احتاجه صورة لـ اللبس Download - التحميل
    2 points
  22. Honored to be featured, it makes me feel nice to know the stuff I do might make an impact on some people. Happy holidays :)
    2 points
  23. O que é for? Assim como while ou do...while, o for é uma estrutura de repetição, que serve pra que? Repetir as coisas xd Por exemplo: local vehicles = getElementsByType("vehicle") Essa parte do seu código retorna uma tabela de veículos, contendo vários veículos que você deseja destruir. Não existe uma função nativa do MTA que destrói todos os carros, você deve destruir um a um. Imagina como seria fazer isso sem uma estrutura de repetição Então basicamente é isso, estrutura de repetição serve pra repetir alguma função ou pedaço de código. Por exemplo, se você quer conta
    2 points
  24. I back to work on BP! I Successfully added support for multithreading, so simulation will work smooth until you get crazy. Also set of function get changed, old function has changed and new get added. Here's current progress:
    2 points
  25. That's not correct Read https://updatesa.mtasa.com/sa/trouble/?tr=netlimiter for some instructions In your case, for example you have the SeriousBit netlimiter driver running on your PC, and it should be at this location (folder): C:\Windows\system32\DRIVERS\nbdrv.sys
    1 point
  26. Oh, sorry! I forgot that you have time limit to edit a post/topic. Only moderators can. Nevermind...
    1 point
  27. Well... You've got a variable _nowY which holds: sy - 305 - (47 * 1) But, you use that value hardcoded into the assignment of the pos variable: pos = {interpolateBetween(20 - 80, sy - 305 - (47 * 1), 0, 20, sy - 305 - (47 * 1)... pos = {interpolateBetween(20, sy - 305 - (47 * 1), 0, 20, sy - 305 - (47 * 1)... That's not all! At the end you update the variable nowY, which is not being used anywhere. I'd say you get a grasp of the basics of variables. All that being said, what you must do is make usage of the variable nowY, which must be defined before the start of th
    1 point
  28. You can't read meta.xml in client side and I think that this probably is your mistake. To read the meta.xml file you need to do that in the server side and if needed send the data to the client.
    1 point
  29. hey ı was far away from my pc.ı did this man ! thank you
    1 point
  30. Thread locked. We do not support leaked resources nor offer assistance with debugging them. Please find another place for this. @SpecT while we highly appreciate you wanting to help, we've had to remove your posts as well. Thanks!
    1 point
  31. As this is not a server support issue but is asking for help with code, the thread has been moved to the Scripting section.
    1 point
  32. I recommend to check/remove the following: setTimer ( function(localPlayer) Overwriting the localPlayer with a nil value should cause problems. You could use the following useful function for blocking: elseif itemData["id"] == 34 then if checkPassiveTimer ( "limit-item-id-34", true, 10000 ) then -- this code can only run every 10 seconds end Get the function from here: https://wiki.multitheftauto.com/wiki/CheckPassiveTimer
    1 point
  33. Correct - Magic TXD is very easy to use. You can still use TXD Workshop, but only to extract the .txd file into a folder. From there, open Magic TXD and open the .txd file that you extracted. You can then choose 'extract to PNG' and it's done. صحيح - Magic TXD سهل الاستخدام للغاية. لا يزال بإمكانك استخدام TXD Workshop ، ولكن فقط لاستخراج ملف .txd إلى مجلد. من هناك ، افتح Magic TXD وافتح ملف txd الذي قمت باستخراجه. يمكنك بعد ذلك اختيار "extract to PNG" ويتم ذلك.
    1 point
  34. Recomendo que use setAccountData em vez de ACL, é mais leve pro seu servidor e fácil de trabalhar. function Pegar_Emprego (playerSource) local account = getPlayerAccount ( playerSource ) if not getAccountData (account, 'Emprego', 'UBER') then setAccountData (account, 'Emprego', 'UBER' ) outputChatBox ("Parabéns! Agora você está trabalhando de UBER!", playerSource, 0, 255, 0,true) else outputChatBox ("Você já está trabalhando de UBER!", playerSource, 0, 255, 0,true) end end addEvent("DNL:Pegar_Emprego", true) addEventHandler("DNL:Pegar_Emprego", root, P
    1 point
  35. isso, desta maneira !. Boa @ber
    1 point
  36. Não sei se é bug de visualização do fórum, mas você não colocou a função de verificar dentro do loop de criação dos markers não né? Você precisa fazer um loop em todos os markers da tabela, e se o elemento declarado no parâmetro estiver nesse marker, vai retornar true e parar o loop, se não estiver, ele vai para o próximo marker até acabar, e se acabar sem achar nenhum ele vai retornar false. function estaNoMarkerGF(element) for i, v in pairs(marker) do if isElementWithinMarker(element, v) then return true end end return false end
    1 point
  37. tente assim: --https://forum.mtasa.com/forum/127-programação-em-lua/page/2/ function showtime (TimeType) local time = getRealTime() local hours = time.hour local minutes = time.minute local seconds = time.second -- Make sure to add a 0 to the front of single digits. if (hours < 10) then hours = "0"..hours end if (minutes < 10) then minutes = "0"..minutes end if (seconds < 10) then seconds = "0"..seconds end if TimeType == 'horas' then return hours elseif TimeType == 'minutos' then return minutes elseif TimeType == 'segundos' then return minutes e
    1 point
  38. We have determined that you're 1 of those people in the Turkish DD scene looking to toxify it, through inventing (looking for) exploits and methods to gain unfair advantage and then, like usually happens, spreading it amongst the scene. This kind of behavior tends to include constantly trying to bypass EXEMOD patcher, working on lagswitches, other tools to gain an unfair/cheating advantage and such.. This group, known as the "core abusers" in Turkish DD scene, has began getting banned, and it brings a benefit to fair play for MTA. Ban appeal denied, unban isn't possible. It's just th
    1 point
  39. This quickguide covers how you can remove objects like night lights and wires. SAMP editor method To install SAMP editor, simply drag and drop the packaged contents into your GTA SA installation. Run the application. https://www.moddb.com/downloads/san-andreas-multiplayer-map-editor Code for removing object in video removeWorldModel ( 16745, 1, 392.9141, 1511.5625, 21.5859 ) ^This is for the script.Lua file <meta> <script src="script.Lua" type="server" /> </meta> ^This is for the meta.xml file For those w
    1 point
  40. Nem értem ezt a voice alapú RP szervereket, feldobja a hangulatot, de eléggé sok hátránya van, nagyon sokan el tudnák funolni az egészet, folyamatosan szabályt lehet vele szegni, és ezt a rendszer még nem is képes logolni.
    1 point
  41. Reason: SERIAL CHANGING + BOT TESTING Serial: 0F51EF5D01C9C9ACAD6B3592A5E62233 Some time ago I coopareted with you @Dutchman101 about my server project "Twoj Serwer MTA" and with duhack we helped u with some problems, and now when I wanted to join to my server I saw this reason. I have no idea what is the reason, maybe thats why cause of using a VPN. But I have never using any type of bot because my mission is to invite new people to play MTA on my YouTube channel: https://www.youtube.com/channel/UCU-21oVPvbBwNSicUcVfItw I hope to get unban asap to create next video Cheers
    1 point
  42. Ebben a topicban megtalálod az MTA globális kitiltás irányelveit, és információkat/segítséget az unban kérelem megírásához. Eredeti és hivatalos, angol nyelvű leírás: LINK Fontos, hogy itt kizárólag a globális, MTA bannokról van szó, nem bizonyos játékszerverek kitiltásairól. (Ha ezt látod: "Ki lettél tíltva általa: MTA") Abban az esetben, ha egy adott szerverről kerültél kitiltásra, sajnos itt nem fogsz segítségre találni, ajánlott felkeresned az adott szerver adminjait a saját fórumjaikon. Ha megbizonyosodtál róla, hogy globális MTA kitiltásod van, akkor a következő
    1 point
  43. function MensagemFRP(source, cmd, ...) local MessagemFRP = table.concat ( { ... }, " " ); local name = getPlayerName(source); local getID = getElementData(source, "ID") or "n.a" -- Caso o elementData do seu sistema de id não for "ID" só alterar aqui. for _,v in ipairs(getElementsByType("player")) do outputChatBox("#Fora Do RP ➠: #FFFFFF["..getID.."] "..name.." #ffffff"..MessagemFRP,v, 255, 255, 255, true) end end addCommandHandler("rp", MensagemFRP) EDIT: Não testei.
    1 point
  44. This topic contains the MTA global ban policy, information on how to appeal your ban and instructions on how to file a report (see bottom of topic) ** Different language versions ** Russian (русский): КЛИКНИТЕ СЮДА Для русскоязычных пользователей Portuguese (Português) CLIQUE AQUI Versão em português Arabic النسخة العربية (عربي) انقر هنا Romanian (Română) APĂSAȚI AICI Versiunea în limba română This board is for global MTA bans only ("You have been banned by MTA"). It's not to be used for when you get banned from a server. In the case of server bans, please c
    1 point
×
×
  • Create New...