⚠️ Due to an issue with Microsoft / Visual Studio Marketplace I'm unable to upload new versions to it. See this comment ⚠️
MTA:SA Lua is a VS Code extension to add syntax highlighting, code completion and other useful functions for MTA San Andreas LUA to VS Code.
Code Completion shows what functions are available
Server only functions will be highlighted in orange
Client only functions will be highlighted in red
Shared functions will be highlighted in blue
Easy way to generate meta.xml and script files
Easy way to access documentation on the MTA Wiki
Enable the WebAdmin Http Functionality for restarting/starting/stopping resources
Enable automagically restarting resources when saving
Enable search hinting when restarting resources (Requires http whitelisting this ip)
URL to the MTA Http Server
Authentication username for the MTA Http Server required for restarting/starting/stopping resources
Authentication password for the MTA Http Server restarting/starting/stopping resources
Allows you to set a custom author when generating new resources (meta.xml -> info -> author)
Enable or disable watermarking of meta files (will place a comment with a notice that the meta was generated by this extension)
Default version when generating new resources (meta.xml -> info -> version)
Default type of new resources (script, gamemode, map, misc)
Custom suffix/prefix for shared files (Default is g_ prefix) This will treat files named g_test or test_g as shared files
Custom extension for shared files (Default is lua) This will treat files named test.glua as shared files
If the shared is a prefix (true) or a suffix (false) (Prefix g_test Suffix test_g)
Custom suffix/prefix for client files (Default is c_ prefix) This will treat files named c_test or test_c as client files
Custom extension for client files (Default is lua) This will treat files named test.clua as client files
If the client is a prefix (true) or a suffix (false) (Prefix c_test Suffix test_c)
Custom suffix/prefix for server files (Default is s_ prefix) This will treat files named s_test or test_s as server files
Custom extension for server files (Default is lua) This will treat files named test.slua as server files
If the server is a prefix (true) or a suffix (false) (Prefix s_test Suffix test_s)
When activated generates a client file when using generate new resource
Allows you to set custom content that should be placed in the newly generated client file
When activated generates a server file when using generate new resource
Allows you to set custom content that should be placed in the newly generated server file
When activated generates a shared file when using generate new resource
Allows you to set custom content that should be placed in the newly generated shared file
When adding new client/server-side files should the meta.xml automagically be modified?
Extensions which are declated as file
Allows you to disable the signature help when using (
Allows you to disable the signature help completely
Only show relevant functions (A serverside script is open, only serverside & shared functions will show)
Make functions clickable which redirect directly to the MTA Wiki
- Updated packages
- Implemented new MTA Functions
- Removed old MTA Functions
- Bugfix for dependency 'request'
- Added ability to make document full of links to the MTA Wiki
- More internal seperation of different types of functions (peds, vehicles, engine)
- Bugfixes for functions
- Added ability to only show relevant functions (Serverside only functions will only display in server lua files)
- Removed duplicated functions
- Scriptside will now show in completion items
- Added 1.5.6 functions and deprecations
- Search hinting for new resource manager
- Added verification if resource exists
- Added resource manager to start/stop/restart resources
- Fixed existing files in generate classes will break extension
- Fixed some missing information in some functions
- Added more settings
- Added the ability to modify existing meta files
- Added the ability to customize file extensions, file prefix/suffixes
- Added the ability to turn off watermarking
- Fixed generating client files
- Fixed extension upload
- Added the ability to create meta/client/server files on the fly
- Thanks to 50p for the sublime text syntax highlighter. Which inspired me to create the VSCode extension.