Jump to content

Help please.


-Dan-

Recommended Posts

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

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

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