Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Piorun

  1. Piorun


    Hi, This year I decided to make an unofficial CLI for MTA. For now I have: Resource is restarting after you will change source file (ex. .Lua) You can create new resource by typing "mta create <resourceName>" (i think it's great for begginers) You can compile all .Lua files to .luac just simply typing "mta compile" into CMD This CLI isn't finished yet so I'm looking for some feedback and features to add. You can test it today simply by installing it as global npm package. Full instalation manual is on repository. You can find it here: https://github.com/pawel-miczka/mta-cli Installation process is simple. First you need NodeJS on local computer. Then in CMD type: npm install -g mta-cli and then you can type into your CMD: mta --help for more details. If you don't have NodeJS installed I highly recommend doing it via chocolatey package manager (https://chocolatey.org/). If you have Chocolatey on your computer just simply type: choco install nodejs and NodeJS should get installed. You can install NodeJS in any different way.
  2. Hi, Like in title. I'm currently working on MacOS (web developer) so It would be nice to have one machine for work. If there is a way to do this now just show me how to.
  3. Is fetchRemote updated in 1.5.5 with additional parameters like options object with informations like request method, form fields, headers etc? @edit Ok, I read change list so I know it is ..
  4. Oh .. Ok, I'm kinda blind. Thanks for reply :D.
  5. Hi, How about official MTA Discord server? Where everyone could meet everyone, share some programming and mapping skills and also learn something new (like english language ).
  6. Ye, cause bitwise operators were sooo important ... Cool feature would be to extend existing MTA classes like Vehicle, Pickup etc. because we could easily make new classes like PoliceVehicle, RacePickup for cleaner code of course.
  7. It's working! Nice, thanks. One simple question: is this technique faster than normal calculations, for loops and dxSetPixelColor?
  8. Hi, My suggestion is to create two functions: dxRotateTexture and dxScaleTexture (ofc. for oop is Texture:rotate() and Texture:scale()) which will return new rotated and scaled texture or will work on texture in parameter.
  9. Sounds promising! I can't wait to test it. Thanks a lot! I will post updates in next hours.
  10. For example: I will plug something to USB. From batch i can detect it and then i want to restart my resource.
  11. I don't want to use lua for this. I want to use batch script. Which means - 'if something happens inside my OS i want to restart server'.
  12. Hi, Is possible to execute command on working server on windows? I mean I want to restart resource using batch without sending HTTP request on MTA Server.
  13. Ok but why there is an option like PolskiSebek12 said?
  14. Ok, fine, thanks for response. I will test it ;).
  15. You mean in mtaserver.conf? It is tested? I mean did someone tried change version to other like 5.2?
  16. Like in topic - update Lua version. It has few cool things like __pairs and __ipairs (from 5.2 ofc.) metamethods...
  17. Visual Studio Code. There is also plugin for debugging MTA's code.
  18. Hi, Today I decided to public my first "big" project called "Collections". Collections are just simple improvment for Lua's table. They (now) allows you to add and remove elements, merge 2 or more collections together and also - filter them (using method 'where'). For more check out my GitHub repository: https://github.com/Pioruniasty/mta-lua-collections I'm waiting for feedback
  19. Hi, Today I found that on steam there is GTA:SA for MacOS / OSX so i decided to write this topic. Can you compile MTA source code for MacOS also?
  20. Hi, Is possible to extend MTA classes like Vehicle, Player etc. using classlib by sbx320?
  21. What's this: https://wiki.multitheftauto.com/wiki/SetDebugViewActive?
  22. Piorun


    Hi, Do WebSockets (for ex. libraries like Socket.IO) are working with browser created in MTA? I'm asking because I want to connect server via Socket.IO locally (NodeJS Express.js).
  23. You mean by your code I can do something like local p = Person("Piorun","test"); outputChatBox(p.address); and it will work or I should call address in other way?
  24. Show me how to mix private and public variables and we will be in da house.
  25. C# is great oop language. There could be an option to choose between Lua and C# so ppl won't need to remake his scripts. Lua is bad if we are talking about oop. Many programmers prefer OOP over procedural cause it's better and cleaner.
  • Create New...