Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 29/12/20 in all areas

  1. 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,4721,4722,4723,4725,4739, 4740,4741,4742,4743,4744,4745,4746,4747,4748,4749,4750,4751,4752,5661,5662,5665,5990,5991,5992, 7206,7207,7208,7221,7222,7280,7333,9088,9089,9125,9154,9277,9278,9279,9280,9281,9282,9283,9885, 8502,9159,7233,8981,14628,3437,8371,8370,17957,17956,17955,17954,9129,9128,9127,9126, 9124,9123,9122,9121,8372,7944,7943,7942,7892,7332,7331,7226,7097,14561,14811,7268,9094,9095,11412,11411,11410,11324,14605, 14473,14470,14460,14406,7290,7314,7289,7266,7264,7220,7072,8395,9104,9175,8982,7666,7230,9100,9101,8840,7232} for _,obj in ipairs (objtoremove) do removeWorldModel (obj, 10000, 0, 0, 0) end Si tu ne sais pas où coller ça, il faut l'insérer dans le .lua de ton mapping ou bien dans une autre ressource. Bonne fin d'après-midi
    2 points
  2. 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 who want to load it into a .map file, the below code can be edited with your coordinates, ID and radius. <removeWorldObject id="removeWorldObject (objectname) (1)" radius="100" interior="0" model="9934" posX="-1724" posY="765" posZ="24" rotX="0" rotY="0" rotZ="0"></removeWorldObject> ^This is for the .map file if you rather use map editor format Note: SAMP editor doesn't want to run if MTA (gta exe) is already running. Therefore you'll want to add SAMP editor into a separate gta sa installation. I use 3 (1 for playing, 1 for samp editor, 1 as clean backup) on my PC. This requires 12gb disk space. This lets you boot up MTA and SAMP editor without conflicting issues. Prineside method Prineside is a site containing IPL and IDE information about objects, it also serves a GTA map with position pinpoint functionality, allowing you to get the object ID easily by clicking a spot in the map. Use Prineside's Model search by location to pinpoint the location closest to the object of interest. This generates a list of objects within 500 meters from the pin, closest to farthest. Clicking an object page gets you its object name and ID. At the bottom of an object page you can get the position export. Repeat the steps from SAMP editor method for adding the coordinates to the code. Transcluent/transparent objects like shadows, telewires and small flowers may not have any clear thumbnail, in which case it's actually easier to spot them as they're the ones with an empty thumbnail. https://wiki.multitheftauto.com/wiki/RemoveWorldModel https://dev.prineside.com/en/gtasa_samp_model_id/
    1 point
  3. 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 to change our lifestyles. These were the times when MTA:SA had seen the biggest number of players ever recorded. The achieved popularity growth still seems to be present even today, when you compare this year's numbers to the ones from a year before. April has marked the third anniversary of the opening of our Discord and a lot of things have changed since then. We have introduced more regional channels and made it easier to contact our team if you had an important matter to discuss. We have also made it easier for new users to check and accept our Discord Rules in their language. Our server has over 15.000 members nowadays (even after a little miss-click on the Purge users button during the year ?) and we are still working towards getting even more members. Some work has been done on reviving the AMX Compatibility Layer module. It can be used for running the existing PAWN gamemodes, filterscripts and plugins in MTA:SA. There is a public beta build for the Windows server if you would like to try it out. The module is open source - so you are more than welcome to contribute to it too. We have released Multi Theft Auto: San Andreas 1.5.8 in October. The changes in this release were mostly community contributions, improvements and bugfixes. It took us more time than usual to publish it, as nearly 407 days have passed since the last release. We hope that it was a polished enough build to be worthy of the wait. Aside of that, we have been experimenting with doing some MTA:SA related streaming on our Twitch channel for a while. Woovie has done an excellent job on these streams and covered a bunch of topics, such as the community servers and gamemodes reviews, Lua scripting and doing code reviews and QA. If you have not seen them, we have put some of them on our YouTube channel. Our Forums were overhauled this year. In addition to that, one of our community members has recently made a brief post about how the Forums have changed over the years. It is nice to see that there are people out there who are interested in the historical side of things too. ?️ A bunch of interesting MTA:SA-related YouTube videos from this year [DM] Disaster ft. BriaN - ABZU by Gerc & others Bullet physics in mta, progress by CrosRoad95 MASSACRE | NON-STOP MTA DAYZ by supraaa & others MTA Racing Tutorials || PART 3 || Useful ways for San Andreas racing. by Vilgefortz & others MTA: SAAW Star Wars - Kamino map pre-Alpha rare leaked footage by Einheit-101 MTA: Lumiverse: Atlas - Server - Dashboard (In-Depth Analysis) by lumiverse Rabbit hunt script for MTASA with extra map & skin mod by "Press start to begin" / True_Killuminati ! Epilepsy warning ! [DM] NeiT Vol.9 - Image Distortion by RRecords & others ? Current player counts and version fragmentation statistics Type Amount of players Date / Time Recent peak number of concurrent unique players 38 696 players 2020.12.19 (at 18.00 GMT) Highest recorded number of concurrent unique players 52 098 players 2020.04.02 (at 18.00 GMT) Recent number of daily unique players 153 033 players 2020.12.20 (Sunday) Highest recorded number of daily unique players 185 818 players 2018.02.03 (Saturday) Recent number of monthly unique players 647 317 players November, 2020 Highest recorded number of monthly unique players 805 903 players January, 2018 The numbers are slightly bigger than in the last year. Some of the records were not beaten, but were a really close call. For example, nearly 800 000 unique players had played this year in April! And our recent concurrent unique players peaks are bigger than our last year's records for that. How does this compare to modern games, you may ask? You can check it yourself by visiting the Steam Stats page. Powerhouses like GTA V, CS:GO, PUBG and Cyberpunk 2077 have much higher peak players numbers, but we are surely close to some of the other well-known games - for instance Civilization VI, Terraria, Euro Truck Simulator 2 or Garry's Mod. We are even surpassing the recent player counts of games, such as Left 4 Dead 2, Europa Universalis IV or Borderlands 3 (at least on Steam). MTA:SA version or series Percentage of players using that version or series as of 23rd of December, 2020 1.6.0 (alpha; custom) 0.1% 1.5.8 98% 1.5.7 1.7% 1.5.6 (and older) 0.1% 1.4.x + 1.3.x 0.1% The latest versions are the most popular ones so the version fragmentation is not much of a problem. ? Status updates In terms of the mod development, we have been mostly monitoring the situation after the recent release for now. We have also received some nice contributions from the community developers, like the work done by fastman92 to improve MTA:SA's compatibility with fastman92 limit adjuster. Patrik has been putting a lot of effort into designing the new Community site - we would love to see those designs replace the old site one day. Team-wise, we are in process of doing major inner changes in order to improve the transparency and the quality of our work. These changes will be hard to notice at first, as they are strictly related to our Team's organization and policies (they will especially affect the Moderators Team). After a while though, you might be able to see their effects for yourself as well. That's it for now. ? ? Happy Holidays and best wishes to all of you! Let's hope that 2021 will be better than 2020. ?️ ? -- MTA Team
    1 point
  4. Hello, I didnt use Slothbot in a long time but i believe "waiting" state wont make him peacefull, it will make him wait until he sees someone, if the player isnt in his team then the bot will chase and shoot, if the player is in his team then he will follow him. So in your script the Bot will always shoot you as soon as he sees you ( assuming im right about the waiting state and if you are not in the same team). Maybe try to use setBotAttackEnabled to false when you spawn it.
    1 point
  5. Inclua isto no meta.xml do resource de loading screen para fazê-lo iniciar antes dos outros. <download_priority_group>2</download_priority_group>
    1 point
  6. Afraid I don't speak French however, follow this guide and reply if you need any further help! https://forum.multitheftauto.com/topic/123641-removing-any-world-object/
    1 point
  7. MarkerComprarPorte = createMarker(x,y,z,"cylinder",1.5,255,255,255,50) -- MODIFIQUE O X,Y,Z PARA A POSIÇÃO QUE VOCÊ QUER MarkerComprarArma = createMarker(x,y,z,"cylinder",1.5,255,255,255,50) -- MODIFIQUE O X,Y,Z PARA A POSIÇÃO QUE VOCÊ QUER ValorPorte = 1000 ValorArma = 1000 function MostrarInfosPorte(source) outputChatBox("Para Comprar o Porte de Armas Digite /comprar Valor : R$"..ValorPorte..",00",source,255,255,255,true) end addEventHandler("onMarkerHit",MarkerComprarPorte,MostrarInfosPorte) function ComprarPorte(source,comando) if isElementWithinMarker(source,MarkerComprarPorte) then -- CONFERINDO SE ESTÁ DENTRO DO MARKER if getPlayerMoney(source) >= ValorPorte then -- CONFERINDO SE O DINHEIRO É MAIOR OU IGUAL AO VALOR DO PORTE if not getElementData(source,"Porte") then -- CONFERINDO SE A PESSOA NÃO TEM O PORTE setElementData(source,"Porte",true) takePlayerMoney(source,ValorPorte) else outputChatBox("Você Já Tem Porte",source,255,255,255,true) end else outputChatBox("Você Não Tem Dinheiro Suficiente",source,255,255,255,true) end end end addCommandHandler("comprar",ComprarPorte) function ComprarArma(source,comando) if isElementWithinMarker(source,MarkerComprarArma) then -- CONFERINDO SE ESTÁ DENTRO DO MARKER if getPlayerMoney(source) >= ValorArma then -- CONFERINDO SE O DINHEIRO É MAIOR OU IGUAL AO VALOR DA ARMA if getElementData(source,"Porte") then -- CONFERINDO SE TEM O PORTE giveWeapon(source,31,500) takePlayerMoney(source,ValorArma) else outputChatBox("Você Não Tem Porte",source,255,255,255,true) end else outputChatBox("Você Não Tem Dinheiro Suficiente",source,255,255,255,true) end end end addCommandHandler("comprarm4",ComprarArma) Exemplo básico para entender a lógica
    1 point
  8. @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.
    1 point
  9. Qual é a origem daquele type? E está faltando um 'end'
    1 point
  10. @SrPatiff O seguinte código pode ajudá-lo com o problema reportado: local fps = 0 local showFPS_tick = 0 function getCurrentFPS() return fps end local function updateFPS(msSinceLastFrame) fps = (1 / msSinceLastFrame) * 1000 end addEventHandler("onClientPreRender", root, updateFPS) function screenFPS() fps = math.floor(fps) local enviado = getNetworkStats().packetsSent local recebido = getNetworkStats().packetsReceived local packetLoss = getNetworkStats().packetlossTotal local now = getTickCount() local mostrar = getElementData(localPlayer, "hud:informacoes") if mostrar == nil then setElementData(localPlayer, "hud:informacoes", true) end if mostrar == true then if (now >= showFPS_tick) then dxDrawText("FPS: "..fps, (screenW * 0.1555) - 1, (screenH * 0.0362) - 1, (screenW * 0.1992) - 1, (screenH * 0.0537) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("FPS: "..fps, (screenW * 0.1555) + 1, (screenH * 0.0362) - 1, (screenW * 0.1992) + 1, (screenH * 0.0537) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("FPS: "..fps, (screenW * 0.1555) - 1, (screenH * 0.0362) + 1, (screenW * 0.1992) - 1, (screenH * 0.0537) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("FPS: "..fps, (screenW * 0.1555) + 1, (screenH * 0.0362) + 1, (screenW * 0.1992) + 1, (screenH * 0.0537) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("FPS: "..fps, screenW * 0.1555, screenH * 0.0362, screenW * 0.1992, screenH * 0.0537, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("PING: "..getPlayerPing(localPlayer), (screenW * 0.1977) - 1, (screenH * 0.0362) - 1, (screenW * 0.2414) - 1, (screenH * 0.0537) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("PING: "..getPlayerPing(localPlayer), (screenW * 0.1977) + 1, (screenH * 0.0362) - 1, (screenW * 0.2414) + 1, (screenH * 0.0537) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("PING: "..getPlayerPing(localPlayer), (screenW * 0.1977) - 1, (screenH * 0.0362) + 1, (screenW * 0.2414) - 1, (screenH * 0.0537) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("PING: "..getPlayerPing(localPlayer), (screenW * 0.1977) + 1, (screenH * 0.0362) + 1, (screenW * 0.2414) + 1, (screenH * 0.0537) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("PING: "..getPlayerPing(localPlayer), screenW * 0.1977, screenH * 0.0362, screenW * 0.2414, screenH * 0.0537, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) showFPS_tick = now + 1000 end end end addEventHandler ( "onClientRender", root, screenFPS ) Se não der certo, avise aqui quando puder.
    1 point
  11. @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 -- aqui verificamos os players que tem o elementData 'ID' igual o que botamos no print acima v = VALOR -- aqui transformamos a variavel no player selecionado. break -- aqui quebramos o loop end end return v -- aqui retornamos para o 'print' o 'player or false' end
    1 point
  12. Os objetos-resource não são transferidos via evento, você teria que criar uma nova tabela com os nomes dos resources e então enviá-los ao client.
    1 point
  13. Hello, Il y a pas de réponse donc je vais t'aiguiller un peu ^^ Tu as trouvé depuis ? Sinon, tu as checké sur Fiverr pour des traducteurs ?
    1 point
  14. This is wrong. Try: addCommandHandler('leave', function (player) setCameraTarget(player) end )
    1 point
  15. Show me the code you used to test
    1 point
  16. For you set the camera target to yourself, try using setCameraTarger function.
    1 point
  17. Se quiser selecionar um valor aleatório que tá dentro da tabela, pode fazer por exemplo: setElementModel(ped, femaleSkins[math.random(#femaleSkins)])
    1 point
  18. For the command, you can try using onPlayerCommand event
    1 point
  19. Nativamente isso não é possível ? Mas você pode fazer uma "gambiarra" para isso ser possível .-.
    1 point
  20. Bom, criar animação no vidro do carro não é possível kk, neste link está o porquê. Para fazer tal animação você pode modelar um veículo com os vídros personalizáveis e desenvolver scripts para fazer a animação do vidro, uma outra hipótese que não tenho certeza se daria certo, seria o uso de Shaders. No entanto, você pode fazer o vidro do carro sumir e aparecer kk. Usando as seguintes funções: setVehicleWindowOpen(elemento-veículo, integer-assento) -- Esta função muda o estado de um vidro do assento de um veículo isVehicleWindowOpen(elemento-veículo, integer-assento) -- Esta função verifica se a janela de tal assento especificado está aberta ou fechada, retornando 'true' para aberta e 'false' para fechada
    1 point
  21. Hi, I just registered because this is the moment I've been waiting for. I'd love to see the limit adjuster implemented. I would love to see the GTA Underground map on MTA aswell. I also am working on my own gamemode but I could make it a lot better with fastman92's limit adjuster. I would add more weapons, vehicles, skins, and some maps. To keep it low spec computer friendly, I would only use models and txds that are low poly and low resolution. I wouldn't see this as not only a new feature, but a new era of GTA multiplayer, the next big step.
    1 point
×
×
  • Create New...