Jump to content

Search the Community

Showing results for tags 'programming'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



Member Title





Found 4 results

  1. Lua Language Server - Definition files The Lua language server is a powerful tool that enhances the development experience for Lua programming. It provides a comprehensive set of code editing features, including suggestions, auto-completion, and error checking. With the Lua language server, developers can effortlessly navigate through their resource files, access documentation easily, and ensure code correctness by giving warnings. Why should you care? The language server will inform you about all sorts of problems: type mismatches, missing function arguments, missing variables, etc. You have access to a lot of MTA syntax/autocomplete out of the box. The syntax information will remain while writing. You do not have to restart your resource so often in order to validate if everything is working. Type validation Having value type validation in your code editor is one of the main key features of the Lua Language Server. When working with variables, parameters, and arguments in Lua, you are not restricted to specific value types. This flexibility can make mistakes more likely to happen. However, being able to validate those mistakes instantly saves you a lot of time and frustration. Type annotations for your own functions Adding type annotations to your own functions can help improve validation and catch logic mistakes. It is particularly useful when calling functions from different parts of your code, as the annotations provide clarity on the expected input (arguments) and output (return values). Additionally, comments that are placed above or adjacent to a variable or function are visible when hovering over them in another file or line. This can provide helpful information and context when working with the code. How that looks like: How can I quickly add annotations in less than a second? Open the spoiler: AddEventHandler auto-complete Most MTA addEventHandler functions have full eventName autocompletion. And the attached anonymous function is fully autocompleted and typed as well. Navigation features of Lua Language Server It can be time consuming to find out where a (global) function or variable is located. Being able to jump right to it, saves you a lot of time. Other information which you can find in the readme Installation for the Lua Language Server How to use the definition files? Known issues Make sure to always have an empty new line at the end of your files, as recommended in this issue. Currently, the Lua server language definition files do not have a clear separation between serverside functions/events and clientside functions/events. However, it is possible to enforce this separation for specific functions if needed. outputChatBox--[[@as outputChatBox_server]]("Serverside", player) In certain cases, certain functions in the Lua server language definition files may return multiple types, even if you have selected a different syntax. To handle this situation, you can use the `cast` or `as` notation to explicitly specify the desired type or adjust the returned type. See `Casting and as` syntax below. Casting and as In certain situations, you may have a strong understanding of the type(s) that a variable or expression will have. This is where the keywords "cast" and "as" come into play. These keywords enable you to explicitly specify the intended type, ensuring proper type handling. local varName = exampleFunc() ---@cast varName string local varName = exampleFunc() ---@cast varName string | number local varName = exampleFunc() --[[@as string]] local varName = exampleFunc() --[[@as string | number]] Download The definition files can be downloaded here.
  2. Hi there, I started a tiny project which involves developing a new programming language. For now, it will be an extremely light weight programming language with only declarations, arithmetics, std I/O features. It is platform independent. Once the basic beta is released, and if people are familiar with the easy syntax, I will develop it further providing more libraries, features and documentation. I have started working on the project. Approx. 200 lines have been appended to my github. I will share my github profile once I'm done with the basic functionalities. If you want to contribute to the project, then you need to adhere to the requirements. Good C++ knowledge. (at least 5/10 in C++). Good programming practices. Good readable code should be written. Should know about how top-down parsers, lexers and ICG works. This is because, I'm not using YACC or other pre-built tools to build my programming language. I'm building my own lexers, parsers from scratch. Should know good english. (9/10) Once you're fine with these requirements, you can contact me here. Once I finish developing the basic functionalities, we can get started on the project. (in case you want to contribute). with regards, Muffin.
  3. السلام عليكم ورحمة الله وبركاته بما اني متفرغ هذي الايام فقررت استرزق شوي حاليا انا متفرغ دايما ابي ابرمج اي شي ولاكن طبعا بمقابل سوا وعلي حسب نوعية السكربت صحيح اني مش مبرمج الي هوا محترف ولاكن ما رح اقصر معك ولاكن ببرمجلك السكربت وبتخش تشوفه قبل م تاخذه بسيرفري حق البرمجة والي هو اسمه ( [ > سيرفر هيمو لبرمجة السكربتات ] skype= live:kdark8703 ) رح تخش تجرب سكربتك فيه وبتاخذ السكربت قبل الدفع طرق التواصل skype : live:kdark8703 facebook :Click Here ___________________________________
  4. سلام عليكم شباب حياكم الله واما بعد , كنت بصراحة ببحث فى الويكى عن كود لتغير الانميشن بس مالقيتو رجأ شباب اللى معة الكود او يجيبلى اياة من الويكى جزاة الله كل خير دمتم بحب وبود , فى امان الله .
  • Create New...