RPForge Script Checker
Check a FiveM resource from your editor. The extension sends the resource's code files to the free RPForge Script Checker and lists what it finds in the Problems panel, on the file and line it is about.
The checks are fixed rules, the same ones as on the website: the manifest (fx_version, game, files it lists that are not there, UI files missing from files), Lua that does not compile, client code that uses io or package, framework exports that do not exist, mixed frameworks, NUI input without focus, and patterns that load remote code or hide a loader. The full list is on the checker's page.
Use it
Open a folder that holds a resource (a folder with fxmanifest.lua) or a whole server's resources folder, then:
| Command |
What it does |
| RPForge: Check this resource |
Checks the nearest folder with an fxmanifest.lua above the active file. Also in the Explorer's right-click menu on a resource folder. |
| RPForge: Check file |
Checks the active file on its own. |
| RPForge: Clear results |
Removes every RPForge entry from the Problems panel. |
Each finding shows its rule id; click it to open that rule's explanation. Files you have not saved are checked as they are on screen.
The status bar shows the last result — RPForge: 2 errors, 3 warnings, RPForge: clean, or RPForge: rate limited, retry in 12 min — and runs the check again when clicked. The RPForge output channel lists what was sent and what was not.
What is sent
Only the resource's code files: fxmanifest.lua and its .lua, .js, .ts, .html, .json and .sql files, with their paths inside the resource folder. Never sent:
server.cfg, .env and .env.* files, *.key and *.pem files, and any file that sets sv_licenseKey or rcon_password;
node_modules, .git, dist and stream folders, images, sounds, fonts and other non-code files.
The first time, the extension asks before anything is sent. The checker reads the files and answers; nothing is executed or stored. The extension collects no telemetry.
The checker allows 30 checks an hour from one network, so checking on every save is off unless you turn it on.
Settings
| Setting |
Default |
|
rpforge.checkOnSave |
false |
Check the resource again each time one of its files is saved. |
rpforge.framework |
auto |
auto, qbcore, qbox, esx or standalone. |
rpforge.apiUrl |
RPForge's checker server |
Where the checker runs. Only your user settings can change it, never a workspace's. When it points at this machine (localhost), the first-time notice is not shown. |
Install
- From the Visual Studio Code Marketplace or Open VSX, search for RPForge Script Checker.
- From a
.vsix file: code --install-extension rpforge-script-checker-<version>.vsix, or Extensions: Install from VSIX… in the Command Palette.
License
MIT