Skip to content

A prototype extension for vscode that adds autocomplete functionality for MTA SA functions.

License

Notifications You must be signed in to change notification settings

xman40100/lua-mtavscode-prototype

Repository files navigation

lua-mtavscode (prototype)

lua-mtavscode is an extension for Visual Studio Code editor to add IntelliSense support, snippets, commands and more for the Multi Theft Auto San Andreas modification.

Features

IntelliSense support

lua-mtavscode comes with autocomplete, hover and signature providers for various symbols that belong to MTA San Andreas. The extension can be customized to differentitate between client, server and sharedside symbols, allowing you to see the only the ones that are available for the scriptside you are dealing with. This setting can be customized, allowing special keywords to be used to differentiate both scriptsides, by default, it uses the c_ and s_ syntaxes, as well as looking for "server" and "client" words in the file.

Please note, this is not a full LSP, which means, it doesn't have detection for variables, custom function in the IntelliSense, and other general features of a LSP.

Every autocomplete and hover item describes what does the method do, its parameters, as well as a link to the MTA Wiki for full reference!

For the meta.xml file, lua-mtavscode also provides snippets for autocompletion, with a little description.

Useful snippets

This extension provides useful snippets for coding your resource, for example, create a command handler, add a custom event and more!

Project scaffolding (TO-DO)

This extension adds the ability to scaffold a resource from the get go, simply with the press of a click!

Settings

The extension has the following settings:

  • lua-mtavscode.serverSideFileKeywords: This setting allows the extension to scan the filename to determine if it belongs to a serverside script. It's an array of strings, and by default, it has the following: _s, server.
  • lua-mtavscode.clientSideFileKeywords: This setting allows the extension to scan the filename to determine if it belongs to a clientside script. It's an array of strings, and by default, it has the following: _c, client.

About

A prototype extension for vscode that adds autocomplete functionality for MTA SA functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published