Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 14/01/21 in Posts

  1. pAttach version 1.0 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
    4 points
  2. This server still goes strong after all these years! @Einheit-101 epic server!
    2 points
  3. 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
    2 points
  4. comandos = {"test1", "test2", "test3", "test4"} for i, v in pairs(comandos) do addCommandHandler(v, funcaoTeste) end funcaoTeste(playerSource) outputChatBox("comando executado", playerSource) end
    1 point
  5. Utilize a função GetResourceOrganizationalPath para saber em qual pasta o resource está.
    1 point
  6. 1 point
  7. Seems like restarting the resource causes the element datas to break. Adding a check on the side fixes the issue, but creates another issue, you gotta reenter your car after each resource restart. Also, I'm not sure how your code ran, as there is no "distance" value defined in your snippet. If it's needed, readd it in the line please. addEventHandler ("onPlayerVehicleEnter", getRootElement(), function (theVehicle, seat, jacked) if theVehicle and seat == 0 then theVehicle:setData("lastPos", theVehicle:getPosition()) end end) setTimer(function() for k, veh in ipairs(getElementsB
    1 point
  8. Better idea would be to move it to GitHub. https://github.com/multitheftauto/mtasa-blue/issues
    1 point
  9. updateTimer = setTimer(function() textItemSetText(text, math.floor(remaining/1000)) end,1000,0) -- when the player gets out of the jail if isTimer(updateTimer) then killTimer(updateTimer) end This will create a timer which will trigger the setText function per 1 second so the player will see in real time how much time left to wait. And put the killTimer where you take the player out of jail. Feel free to ask if you can't understand something.
    1 point
  10. Before that, I want to tell you, I'm not good at using English. And thank you for telling me how to friends, I was very helped by your answer.
    1 point
  11. addEventHandler ("onClientVehicleStartEnter", root, function (thePlayer) if (thePlayer == localPlayer) then if (isVehicleLocked (source)) then outputChatBox ("Veículo trancado.", 255, 0, 0) cancelEvent() end end end)
    1 point
  12. No worries, I've sorted out the title. Cheers
    1 point
  13. Oh, sorry! I forgot that you have time limit to edit a post/topic. Only moderators can. Nevermind...
    1 point
  14. Hey, i'm kinda new on this forum and i can't find any option to edit the posts not even mentioning threads. Can you tell me how do i do that so i can edit that?
    1 point
  15. For dxDrawImage3D you need to put faceTowardX/Y/Z argument too if you want to rotate image on the ground.
    1 point
  16. Thanks for the information. @Dutchman101
    1 point
  17. local aba = "inicio" function render() if aba == "inicio" then [...] elseif aba == "player" then [...] end end function onClick(button, state) if isCursorOnElement(...) then aba = "player" end end addEventHandler("onClientClick", root, onClick) Aí um pequeno exemplo. Basicamente, você vai usar uma variável para guardar a página do painel que o player está atualmente, e fazer a mudança dela de acordo de onde o player clica, e no onClientRender basta usar um if para ver em qual página está, e dependendo da página é exibido um layout diferente no painel DX.
    1 point
  18. From https://wiki.multitheftauto.com/wiki/Famous_crash_offsets_and_their_meaning: So, the reason for crashes with gta_sa.exe offset 0x000DFE92 and 0x000DFF90 is: bad sound mods. Re-install a clean version of GTA. @Slay
    1 point
  19. Hi, and welcome on Forum! Your code looks correct and should work on client side. But.. probably the help command name is already in use, it's a hardcoded MTA command. Try to use something else.
    1 point
  20. php = ما راح تحتاجلها كثير اذا كنت بتطور موقع او شئ من هذا المثيل, طبعا الخاصيه هذي تقدر تسخدمها في اشياء خاصه بها, تقدر تشوفها على اليوتيوب, javascript = يستخدم لصنع تأثيرات في الموقع , html css = لغة البرمجه الخاصه بالمواقع, وهي تعتبر من اسهل اللغات بالنسبه لي , اي شئ مافهمته علمني ومابقصر معكـ
    1 point
  21. Hi. I uploaded a new version of the resource, download it and use like this: <meta> <pDownloader>true</pDownloader> <!-- STEP 2 - enable pDownloader --> <!-- script file isn't needed --> <!-- STEP 3 - disable downloading with download="false" attribute --> <!-- and set model ID for the model-loader with model="ID" attribute--> <file src="files/city.txd" download="false" model="3048,3522" /> <file src="files/Land_areia.dff" download="false" model="3048" /> <file src="files/Land_areia.col" downlo
    1 point
  22. 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
  23. O que é? Pra que serve? Um banco de dados é onde ficam salvos diversos tipos de dados que são usados entre as sessões dos jogadores e do servidor, isto significa que mesmo se o jogador relogar no servidor ou até mesmo o servidor reiniciar, os dados salvos no banco de dados não são perdidos. (se o script que salvou lá foi feito corretamente). O que posso salvar neles? O MTA já cria 2 bancos de dados padrão quando vc cria seu servidor, são eles: internal.db - Onde são salvos todos os dados das contas dos jogadores, login, senha, grana do bolso, posição do jogador quando deslogou,
    1 point
  24. O objeto não. Mas você pode salvar as informações dele como ID, posição e rotação e depois recriar o objeto com essas informações.
    1 point
  25. Koszi, de latom magyar vagy :)) Orulok h magyarok is vannak erre xd :))
    1 point
  26. Welcome to the forums @CoringaBVL! Thread has been moved to the Portuguese scripting section. Please do not use the Title field for entering your question. Keep it short and brief! Original title (edited out) Consegui fazer com que a bike não desça a Gasolina, agora preciso por outros veículos como faço para adicionar apenas alguns modelos de veiculo por ID para a gasolina nao funcionar. (Veiculos de Empregos no caso)
    1 point
  27. It looks very slick. I dig the paintjob system!
    1 point
  28. Sim, desta maneira você pega a vida ou nível de procurado do player atual e soma com o valor inserido depois.
    1 point
  29. 13.01.2021 Added our new Palomino wooden bridge mod:
    1 point
  30. Entendi oq vc quis dizer. Você programa os seus resources todo certinho, com sua proteção e tudo compilado. Dai os caras vão lá e violam sua proteção adicionando um script shared contendo "funções subliminares" que podem, além de obter dados restritos, alterar a funcionalidade das funções que você usou no seu resource. No caso de um cancelEvent() geralmente usado para cancelar a ativação do resource, eles fazem com que essa função deixe de funcionar e assim o resource continua rodando mesmo sem ter autorização. O termo que eu utilizo para isso é "sub rotinas". Os caras transformam su
    1 point
  31. Until someone who knows what exactly this is about here are some things you could try: - perform a clean install of latest GPU drivers - check for chipset drivers update and update them if they are old
    1 point
  32. Just some format examples, the right format depends on how you work with them: itemProperties = { ["water"] = { ["friendlyName"] = "Water" }, ["sandwitch"] = { ["friendlyName"] = "Sandwitch" } } items = { ["water"] = {-- Item 1 ["amount"] = 2 }, ["sandwitch"] = {-- Item 2 ["amount"] = 1 }, } -- or items = { {-- Item 1 ["amount"] = 2, ["id"] = "water" }, {-- Item 2 ["amount"] = 1, ["id"] = "sandwitch" }, } combine_list = { { ["ingredients"] = { ["water"] = 2, -- 2x water ["sandwitch"] = 1, -- 1x sandwitch }, ["newItem"] = "water sandwitch"
    1 point
  33. Servers or communities that house malicious activity and publicly viewable DOXING for your case, cannot be advertised here for good reasons. Please fix up on these issues and contact MTA Staff, once you're able to comply with Forum Rules
    1 point
  34. 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
    1 point
  35. تم تحديث اسعار وخطط خوادم اللينكس و خوادم الويندوز https://tapleto-host.net/ar/LinuxVPS.php https://tapleto-host.net/ar/WinVPS.php
    1 point
  36. Hello everyone, my name is Shay. I'm a 19 year old scripter from USA who started a good community called CoreMTA. This community is dedicated towards teaching people how to script. We also occasionally post public scripts for download on our website, which are free to download and edit. It's our goal to help the MTA community as much as possible. If you have any questions feel free to message me, email me, hit me up on discord, whatever you need. ~ ShayF Website: CoreMTA Forums: CoreMTA Forums Discord: CoreMTA Discord
    1 point
  37. Você pode começar a partir do exemplo desta página: https://wiki.multitheftauto.com/wiki/FadeInText
    1 point
  38. MAP Converters Some basic map converters that may be useful. IPL to Lua converter - objects, vehicles and weapon pickups only. IPL to MAP converter - objects, vehicles and weapon pickups only. MAP to IPL converter - objects and vehicles only. MAP to Lua converter - objects, vehicles and object removes only. PWN to Lua converter - objects, vehicles and object removes only. PWN to MAP converter - objects, vehicles and object removes only. Please let me know if you find a bug!
    1 point
  39. 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
  40. Introduction This guide intends to teach 3ds Max users the basics, and more advanced ways, of working with (environment) animations and rigs to enhance atmosphere of the game. Animations, moving images or however you name it, they are there, everywhere in games. GTA San Andreas and its predecessors do utilize animations, however to a limited extent; most environment models were kept frozen in the dark days of PC games to save computer resources. Few objects like mechanical oil drills and food store mascots are animated. Today we're past those days and have advanced in technology to e
    1 point
  41. Hi, I have had to report users by PMing a mod before, and was wondering if a function could be added to report users from their forum profile. (this mostly concerns but isn't limited to, spam bots and those who PM vulnerable users malicious content/links, but has no actual posts that you can report).
    1 point
×
×
  • Create New...