Validate a FiveM resource
validate_resourceStatically checks a FiveM resource: Lua syntax, fxmanifest.lua directives and referenced files, resource structure, undeclared dependencies, framework API calls against pinned QBCore/Qbox/ESX versions, unknown natives, net-event security and backdoor patterns. Returns diagnostics with severity, rule code, file and line and a fix. Code is parsed, never run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | The resource's text files (fxmanifest.lua, Lua, JS, HTML, JSON …) with paths relative to the resource folder. Nothing is executed. | |
| framework | No | Framework to check API calls against; detected from the code when omitted | |
| resource_name | No | Folder name of the resource (used for self-references) |