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.
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.
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 ..
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 ).
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.
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.
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.