-Dan- Posted January 18, 2013 Share Posted January 18, 2013 Hey, I want to started scripting with lua and i don't know whare save that or how started new server. please help me! i try learning from wiki and i can't i have know-how about pawn and i want started with Lua. Link to comment
boro Posted January 18, 2013 Share Posted January 18, 2013 Check this for start new server https://wiki.multitheftauto.com/wiki/Ser ... the_server Link to comment
Perfect Posted January 18, 2013 Share Posted January 18, 2013 They are many tutorials about lua here:- viewforum.php?f=148 and Mta sa community also help you:- https://community.multitheftauto.com/ind ... =resources if you have any doubts then pm me. Link to comment
-Dan- Posted January 18, 2013 Author Share Posted January 18, 2013 Thank's i succsseful opened! i don't know how start gamemode i dont know if this language have a includes/defines/variables. how i can started? Link to comment
iPrestege Posted January 18, 2013 Share Posted January 18, 2013 Thank's i succsseful opened!i don't know how start gamemode i dont know if this language have a includes/defines/variables. how i can started? Maybe that will help you more: Writing_Gamemodes Link to comment
Perfect Posted January 18, 2013 Share Posted January 18, 2013 if you're beginner then you should'nt directly go to gamemode thingy. First make a simple script. then test if its working or not, if not then ask here. if yes then make another script with using different function and see if that works or not. and so on... you can check how function works by going to local server and starting runcode resource. You can get all things about mta functions here:- https://wiki.multitheftauto.com/wiki/Main_Page (On left side of your screen there are Pages for functions) Link to comment
-Dan- Posted January 18, 2013 Author Share Posted January 18, 2013 listen i blulid this: function OnPlayerConnect() outputChatBox("Welcome to my first server in MTA!",player,255,255,0) end addEventHandler("onPlayerJoin",getRootElement(), OnPlayerConnect) i want to upload this my server, how i can do that? Link to comment
iPrestege Posted January 18, 2013 Share Posted January 18, 2013 listen i blulid this: function OnPlayerConnect() outputChatBox("Welcome to my first server in MTA!",player,255,255,0) end addEventHandler("onPlayerJoin",getRootElement(), OnPlayerConnect) i want to upload this my server, how i can do that? function OnPlayerConnect() outputChatBox ( "Welcome to my first server in MTA!" , source, 255, 255, 0 ) end addEventHandler ( "onPlayerJoin", getRootElement(), OnPlayerConnect ) Now you have to create meta file and create Lua file and put the script code! and add the file script id in meta for example! my file Server.lua and i put the code inside it! then what? i have to create the meta file how can i create it? "YourName" type="script" name="My Server" description="My first MTA server" /> and please read the wiki here:https://wiki.multitheftauto.com/wiki/Scripting_Introduction and for full info about meta.xml you should read this:https://wiki.multitheftauto.com/wiki/Meta.xml Link to comment
Anderl Posted January 18, 2013 Share Posted January 18, 2013 First, learn Lua language. Then try to make scripts. Link to comment
Perfect Posted January 20, 2013 Share Posted January 20, 2013 First, learn Lua language. Then try to make scripts. If he didn't try to make scripts then how he will learn ? Link to comment
myonlake Posted January 21, 2013 Share Posted January 21, 2013 First, learn Lua language. Then try to make scripts. If he didn't try to make scripts then how he will learn ? You don't have to use Multi Theft Auto to make Lua scripts. I can see that you have no idea what other people put into the scripting language, while you just sit around and read the Wiki as you try to find useful functions and events. Here is a Demo Compiler: http://www.lua.org/demo.html And the tutorials: viewtopic.php?f=148&t=40809 Go play with your toys, kids. 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