🚀 MTA DevKit for Visual Studio Code
MTA DevKit is an extension designed to boost productivity for developers creating scripts for Multi Theft Auto: San Andreas (MTA:SA). It enhances the Lua and XML development experience inside Visual Studio Code with contextual autocompletion, function/tooltips, syntax highlighting, and more.
🧩 Features
- 🔍 Context-aware autocompletion powered by over 902 native MTA functions and all server-side events
- 📌 Hover tooltips with rich documentation: function descriptions, parameters, return types, source wiki links, and version info
- 🎨 Custom syntax highlighting with grammar-based styling for native MTA functions and Lua keywords
- 🧠 Smart event suggestions that appear only inside valid contexts like
addEventHandler(...)
or addEvent(...)
- 📂 Meta.xml-aware context detection: Determines script type (
client
, server
, shared
) from the meta.xml
file
- 🛠 Full support for both
.lua
and .xml
scripting files
- Editor: Visual Studio Code
- Languages: Lua (client/server/shared) and XML
- OS Support: Windows, Linux, macOS
- VS Code Version: Requires VS Code
1.70.0
or higher
📂 File Access Notice
🔐 MTA DevKit reads the meta.xml
file in your current resource to determine whether each .lua
script is marked as:
type="client"
type="server"
type="shared"
This detection allows the extension to:
- Only suggest functions/events that are valid in the current file context
- Avoid irrelevant completions (e.g., showing client functions in server files)
✅ This behavior is fully local
❌ No data is collected or sent externally
🛠 Your files are never modified
📸 Preview


📦 Installation
📚 Data Sources
Some files in data
contain public information extracted from the official Multi Theft Auto: San Andreas wiki:
🔗 https://wiki.multitheftauto.com/
These include descriptions, parameters, and return values of native MTA functions and events. This data is used solely to enhance the development experience and is not proprietary.
If you have questions, suggestions or want to contribute, join the Yoel 4Devs Discord:
👉 https://discord.gg/w56aqu2KuW