KraZ Posted January 15, 2012 Share Posted January 15, 2012 Okay, ive seen a lot of tutorials out there of people showing you how to create scripts instead if the acctuel code, its like teaching someone an accent but not the language so if anyone could make a tutorial of the main codes that are need, for example> addEventHandler("onClientGUIClick",getRootElement) <-- this means (i dont know what it means thats why i need a better tutorial) addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) ^^^^ you should also explain what these mean, maybe you could make it based off scripts like for example a login screen, you could teach us how to make a login screen using guiEditor then teaching us how to add the eventhandlers onto them so it would look like: function() :the gui crap goes here: then put (which events go where and what the ifs and then and ends mean. im new to lua so pardon me if i get any code wrong here. keep me updated if your planning on doing this, Link to comment
12p Posted January 15, 2012 Share Posted January 15, 2012 I was going to make that tutorial but den i took an arrow to the knee. Link to comment
BinSlayer1 Posted January 15, 2012 Share Posted January 15, 2012 KieronWiltshire, what you're asking is simply what wiki has to offer.. https://wiki.multitheftauto.com/wiki/AddEventHandler and https://wiki.multitheftauto.com/wiki/Event_system for your specific question https://wiki.multitheftauto.com/wiki/Scr ... troduction for general scripting stuff https://wiki.multitheftauto.com/wiki/Ser ... _Functions It's very important to go through almost all of these functions so you know what MTA has to offer on the serverside part https://wiki.multitheftauto.com/wiki/Cli ... _Functions same but clientside functions https://wiki.multitheftauto.com/wiki/Ser ... ing_Events and https://wiki.multitheftauto.com/wiki/Cli ... ing_Events for all MTA built-in events. Both client and server The reason such a tutorial (the one you request) doesn't exist in this forum and probably won't ever be created is that reading the wiki from scratch should suffice every scripter's needs. And if there are syntax-related stuff you don't understand, lua has an online tutorial itself: http://www.lua.org/manual/5.1/manual.html I know you won't read the wall of text @ tutorial, because it's simply too much, but let's say you are not familiar with Tables or Strings. Then just use the Find feature in your browser and read that chapter alone Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now