Jump to content
  • 0

MTA Programming Language


DarkLink

Question

Posted

Hello everybody, I'm a big fan of your mod to gta for so long, more or less since 2007/08.

At the time I was 15 and knew very little of programming, however I made my own server using scripts from other experienced players, such as 50p.

He helped me a lot on my server! Thank fifty ;) (dont know if u still around here)

Today, I'm in college and have learned to program Java.

My final question is: is it very difficult to join lua? Java for LUA .. different? similar?

Is it easy? like java? or not?

I would also like to know where to start.

Thanks alot guys ;)

Please reply me .

PS: Sorry about my bad english, i am portuguese :)

14 answers to this question

Recommended Posts

  • 0
Posted

I have no idea if Java and Lua are similar, but if you give it time you'll get it easy after all, also, you can get examples from the MTA wiki (wiki.multitheftauto.com), here are two introductions.

https://wiki.multitheftauto.com/wiki/Scr ... troduction

https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI

Good luck :)

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • 0
Posted

Lua is easier than Java, lua is a simple scripting language.

Java is said to be similar to C and C++, and C++ is used to program MTA itself.

  • 0
Posted

As a server developer/scripter, you only need to have an understanding of the lua scripting language.

However, if you are interested in committing patches to MTA itself, you have to know C++.

And I believe Java is similar to C#.

Retired

  • 0
Posted

By the way, always you need help, you can post your scripting problems in Scripting section :wink:

"Everything exists, because otherwise nothing would", Bob Marley, 2015.

  • 0
Posted

guys how can I control the amount of markers ? I mean i have my gamemode, and when people go on map editor and load settings of that gamemode, there must be a setting that dont allow more than two markers.

is that on meta.xml doing , its a Lua script?

thanks.

EDIT: For example when we do a map for CTF, we load config on map editor of CTF and then?

how we put flags? manual? like random object, get x,y,z and then put on script?

There aren't automatic script for CTF, that when u are doing map, it only gives u 2 flags two put?

TY

  • 0
Posted

You can implement server-side resources using Java if you do a wrapper module for MTA (I did this to support server-side resources written in PHP, and arc_ did it for Pawn). But you will need to use Lua for client-side resources, as you don't have support for client-side modules.

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