Jump to content

I have a question


Hero192

Recommended Posts

Hello everyone,im old player in MTA but im trying to learn Lua mta script

so my questions are:

1)What's the differient between "Functions" and "Events" and what does the function do and what does the event do (if you guys have examples should be great).

2)Also,What's the differient between Client side and Server Side

3)Which programes should i learn like C/C++ or something will helps me in scripting ..etc im already had good skills in HTML i learnt that in School and if you have more informations / Guides that will helps me please advice me

Link to comment

Hello!

1. Functions are a default feature of Lua. They are made so that you can just write a piece (large or small) code only once, and just use the function name to call it rather than having to rewrite the code. If/when you learn other languages, you will find that they are similar to methods in object-oriented languages.

2. Client scripts run on the clients game and the server scripts run on server-end. Client scripts are used for thing such as drawing interfaces. Server scripts are use for things like saving information to a database.

3. Whoah, slow down! The first thing that you should do is simply learn and get practice with Lua. Definitely don't even attempt C/C++ because those languages are complex and rather difficult to learn. However, if you do want to learn other languages I would recommond that you check out C# (c-sharp), PHP or Java.

Lua: viewtopic.php?f=148&t=40809

C#: https://msdn.microsoft.com/en-us/librar ... 97(v=vs.71).aspx

PHP: http://php.net/manual/en/introduction.php

Java: http://heather.cs.ucdavis.edu/~matloff/ ... Intro.html

Good luck with learning Lua and any other languages that you try!

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