DarkLink Posted June 12, 2011 Posted June 12, 2011 Hi guys, i have one question. Is it possible to get those elements created in map files (map editor) to .lua script ? My script need to get those elements.. so i dont need to change the .lua for every map, and people can make many maps for my gamemode.. But how to get elements from .map files and manage them in .lua scripts ? thanks. Borderpatrol Project Gamemode - Under Development (80%)
SDK Posted June 12, 2011 Posted June 12, 2011 Use getElementByID: https://wiki.multitheftauto.com/wiki/GetElementByID Learn Lua - Learn to script - GUI scripting Scripter tools - Find/fix errors yourself(!) Don't pm me for scripting help, keep it for the Scripting subforum!
DarkLink Posted June 12, 2011 Author Posted June 12, 2011 Thanks SDK, so that is the function they use for assault gamemode ? People place objective on map editor (costum element), and then the script use that function to receive it. right? Borderpatrol Project Gamemode - Under Development (80%)
DarkLink Posted June 12, 2011 Author Posted June 12, 2011 okay thanks alot dude bb Borderpatrol Project Gamemode - Under Development (80%)
Jaysds1 Posted June 12, 2011 Posted June 12, 2011 Thanks SDK, so that is the function they use for assault gamemode ? People place objective on map editor (costum element), and then the script use that function to receive it. right? Yes, and getElementsByType. okay thanks alot dude bb Darklink, Instead of posting more why didn't you use the "Edit" button and add all the post in there. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Castillo Posted June 13, 2011 Posted June 13, 2011 (edited) Jaysd1, your post it's off topic, not his, he just said 'thanks' to eAi, so, if you could stop posting useless stuff it would be just great. Edited June 13, 2011 by Guest San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
DarkLink Posted June 13, 2011 Author Posted June 13, 2011 Jaysd1, your post it's off topic, not his, he just said 'thanks' to eAi, so, if you could stop posting useless stuff it would be jsut great. Come on guys, u are off-toping too :b (and me also) But Jay is a nice guy, dont say that Thanks both Borderpatrol Project Gamemode - Under Development (80%)
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