Jump to content

Search the Community

Showing results for tags 'lua scripting'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 4 results

  1. function Tared (policePed,hitElement,dim) setPedAnalogControlState(policePed, "accelerate", 1) end addEvent( "Tared", true ) addEventHandler( "Tared", localPlayer, Tared ) ابي البوت يطارد الاعب الي لمس الماركر الي اسمة Marker1 هل ممكن مساعدة؟
  2. السلام عليكم ورحمة الله وبركاتة انا كنت ابي اسوي بوت اول ما المس ماركر معين يروح البوت يظهر بسيارت شرطة ويطاردني ممكن مساعدة؟
  3. --------------------------------- السلام عليكم ممكن تساعدوني انا ابي السيارة الي يصنعها الاعب عند لامس الماركر هو فقط الي يقدر ييركبها ولو نزل منها لمدة 30 ثانية السيارة تتمسح واذا كان معة السيارة ما يقدر يصنع سيارة غيرها بيلز سعدوني ارجوكم انا حموت واتعلم الحتي دي
  4. Hello, I'm simple scripter lua mtasa and designer .Enjoy my first tutorial (any question reply it or suggestion, i'll do a list of tutorials ) Variables(type): *Global variables: means the variable will be avaible on hole of the script for example: Code: function test() name = 123 jake = "me" end function test() name = 123 jake = "me" end function test1() print(name)--- returns 123 print(jake)------returns me end the ----- it's a advert can't cause anything to the code print it's for to output a string or else. or (because as global variable it can be in the function or out.) Code: name = 123 jake = "me" functio test() ------your code end *Local variables: it will be avaible only on your function attached to. Code: function test() local name = 123 local jake = "me" end and if i do function test() local name = 123 local jake = "me" end function testt() print(jake) ----- return nil end If you saw Code: jake = "me" "me" called a string . *Key words and break do else elseif end false for if in local nil not repeat then return true or until while function *Function : The function is the way that describe your goal by a CODE . it likes Code: function NameOfYourFunction(arguments) -----YOUR CODE end The function end with "end" if you forgot it , your code wrong. *nil : it means nothing *boolean: it return true or false value *if : Is for to state "if" it ends with "end" as for function for ex: local var1=1 local var2=2 function name() if (var1+var2) == 3 then -----do somthing else -----do something else end end means if 2+1 = 3 then insert your code BUT if 2+1 ~= 3 then insert your code (xd) ~= means not equal == equal *operators: it's what your learned at school : (+,-,/,*,^) (I'll update it soon)
×
×
  • Create New...