Jump to content

Best Lua(MTA:SA) tool to code


AdmiralEstrus

Recommended Posts

INTRODUCTION

While working on your scripts, you always want it to be as easy as it can be. For this needs we already have some packages for utilities like Sublime Text or Notepad++. They're really good, if you work on a single script and you don't have to switch between files.

But when it comes to develop the server, you would want something more, than just a text editor. And this is IDE (Integrated Development Environment).

At first I used CLion IDE, presented by JetBrains company, with intalled Lua plugin.
Unfortunately this option also has some minuses, such as:  this IDE requires much CPU and RAM, it's complicated to make a Lua(MTA:SA) plugin for it.

Looking for a good Lua IDE, I found the best solution: "ZeroBrane studio", it's lightweight IDE for programming in Lua. And I've decided to make an API for MTA:SA programming. Later on I came on idea to share it with whole community.

INSTALLATION

1. Download the ZeroBrane studio: https://studio.zerobrane.com/download 
(If this link isn't working, you can use this link: https://github.com/pkulchenko/ZeroBraneStudio ; Press "Clone or download" -> download ZIP. Extract it in any folder and start zbstudio.exe file)

2. Download mtalib.lua: https://github.com/AdmiralEstrus/zerobrane-mtasa-api and save it to "YourPathToZeroBraneStudioFolder\api\lua" folder

3. Go to "YourPathToZeroBraneStudioFolder\interpreters" folder, open luabase.lua file and edit the next line

api = {"baselib"},

to 

api = {"baselib", "mtalib"},

 

4. Save & Exit.

5. Open ZeroBraneStudio and start coding! 
 

An example: https://i.imgur.com/2Tii3a7.png

 

Please, report all bugs to this topic or to discord PM: AdmiralE.#2107

CHANGELOG

03.09.2018 - Added all clientside functions and events.
02.09.2018 - Added all serverside functions and events.

Edited by AdmiralEstrus
Link to comment
  • 2 years later...

If there was an IDE that would analyze all classes, tables, etc. for the presence of any functions and offer options for the code, that would be great. I once had thoughts of writing my own IDE similar to VisualStudio, with all the useful things from VS, but I feel that it is very difficult and does not make sense.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...