FiveMGen is a Visual Studio Code extension that helps streamline the development of FiveM resources using Lua or JavaScript. It provides code snippets, templates, and tools to help developers create scripts faster and with fewer errors.
- 🔁 Snippets for FiveM Lua and JavaScript scripting
- 📁 Quick generation of
__resource.luaandfxmanifest.lua - 🧱 Scaffolding for new FiveM resource projects
- 🧠 Smart suggestions for events and native functions
- 🛠 Compatible with both client-side and server-side scripts
To get the most out of this extension, ensure you have:
- Visual Studio Code installed
- Basic knowledge of Lua or JavaScript (depending on your scripting language)
- A local FiveM server for testing your scripts
No other dependencies are required to use the extension itself.
FiveMGen contributes the following settings:
fivemgen.enable: Enable or disable the extension (default:true)fivemgen.language: Set preferred scripting language (lua|javascript)fivemgen.defaultResourceName: Default name for new resource folders
- C# support is currently not implemented
- May not support nested workspace folders properly
- No live validation of manifest files (planned for future release)
- Added added Alpine project template generator feature.
- Added 1 more new snippet called genr and more languages support. Go and explore!
- FiveM Documentation
- Visual Studio Code Extension Docs
- Lua Reference
- Node.js (for development)
To build and test the extension locally:
npm install
npm run compile
code .-
Ctrl + Shift + P -> Generate Fivem Resource
-
genfm -> Generates just fxmanifest file
-
genr -> Starts the same process at first step