FreeScript
ResourceDocs
by HastH8 · version 2026.10.09 · updated 21 days ago
No reviews yet
- Downloads
- 0
- Reviews
- 0
- Size
- 195 KB
- Code check
- Clean
- Licence
- MIT
- Released
- Nov 2026
AI Source-backed documentation generation for FiveM and RedM resources.
ResourceDocs
Source-backed documentation generation for FiveM and RedM resources.
Upload a resource, inspect what can be verified, and export polished documentation
for installation, configuration, exports, events, commands, and dependencies.
Live application
·
Quick start
·
How it works
·
Security
·
Contributing
ResourceDocs turns readable FiveM and RedM resource files into structured developer documentation. It combines deterministic static analysis with optional Gemini-assisted writing: source code establishes the facts, while AI improves the explanation around those facts.
The generator is designed for real resource packages, including partially protected Asset Escrow releases. It documents what can be verified, reports what could not be inspected, and never attempts to execute, decrypt, or deobfuscate uploaded scripts.
FiveM and RedM resources often ship with configuration tables, exports, events, commands, framework integrations, and installation requirements spread across many files. Writing and maintaining documentation by hand is slow, and asking a general-purpose model to inspect an archive directly can produce plausible but incorrect details.
ResourceDocs uses a safer pipeline:
FeaturesResource analysis
Users can choose which sections to generate. A complete export looks like this:
Generated links are relative and work both in the ResourceDocs preview and after exporting the files to a repository.
How it works
1. Safe ingestion
The analyze endpoint normalizes every submitted path, rejects
…
Source-backed documentation generation for FiveM and RedM resources.
Upload a resource, inspect what can be verified, and export polished documentation
for installation, configuration, exports, events, commands, and dependencies.
Live application
·
Quick start
·
How it works
·
Security
·
Contributing
ResourceDocs turns readable FiveM and RedM resource files into structured developer documentation. It combines deterministic static analysis with optional Gemini-assisted writing: source code establishes the facts, while AI improves the explanation around those facts.
The generator is designed for real resource packages, including partially protected Asset Escrow releases. It documents what can be verified, reports what could not be inspected, and never attempts to execute, decrypt, or deobfuscate uploaded scripts.
IMPORTANTWhy ResourceDocs?
ResourceDocs is AI-assisted, not AI-authoritative. Technical identifiers, source locations, parameter signatures, configuration defaults, dependencies, and other integration facts come from static analysis. Gemini is used to improve prose and is not allowed to redefine those facts.
FiveM and RedM resources often ship with configuration tables, exports, events, commands, framework integrations, and installation requirements spread across many files. Writing and maintaining documentation by hand is slow, and asking a general-purpose model to inspect an archive directly can produce plausible but incorrect details.
ResourceDocs uses a safer pipeline:
- Validate and safely unpack the uploaded resource.
- Read only supported, accessible text files.
- Parse manifests and source code into a verified fact model.
- Infer callable signatures and configuration structure from code usage.
- Let Gemini improve descriptions within the verified boundaries.
- Render, edit, copy, download, or export the generated Markdown.
FeaturesResource analysis
- Upload ZIP archives, complete folders, or individual source files.
- Parse
fxmanifest.luaand legacy__resource.luamanifests. - Determine the resource name from the extracted resource folder instead of the uploaded archive name.
- Detect FiveM (
gta5), RedM (rdr3), and shared Cfx resource metadata. - Identify declared and source-detected dependencies.
- Detect
.sqldatabase files and include complete, copyable SQL in installation docs when the file is safe to embed; oversized or unreadable scripts retain exact import paths. - Separate startable resources from Cfx runtime constraints such as
/server,/gameBuild,/onesync,/policy,/native, and/assetpacks. - Detect common frameworks and integrations such as ESX, QBCore, Qbox, ox_lib, ox_inventory, ox_target, qb-target, VORP, and RedEM:RP.
- Discover scalar and nested Lua configuration values.
- Preserve the original Lua source, including comments, negative coordinates, vectors, and table formatting.
- Keep structured tables such as
Config.LocationsandConfig.Missionstogether instead of producing a separate section for every nested field. - Generate compact field reference tables alongside complete, copyable configuration examples.
- Include source file and line references for traceability.
- Discover Lua, JavaScript, and TypeScript exports.
- Resolve named functions passed into declarations such as
exports("name", functionReference). - Read parameters from the referenced implementation instead of the export registration line alone.
- Infer parameter types from annotations, literals, arithmetic, string operations, table/object access, callbacks, default values, and known Cfx function semantics.
- Discover and merge event registrations, handlers, and triggers.
- Exclude Cfx lifecycle hooks and ESX/QBCore framework-bus events from the public event reference.
- Discover registered commands and their callback signatures.
- Infer Lua return values, including multiple return values, for more useful export examples.
- Generate side-aware examples using the actual resource folder name.
- Choose quick, standard, or complete documentation detail.
- Enable or disable individual output sections.
- Add official dependency download links before generation.
- Browse analyzed and unreadable files in compact collapsible panels.
- Preview Markdown with lazy-loaded Shiki syntax highlighting.
- Edit generated documents with Monaco Editor.
- Use preview, editor, or split-screen modes.
- Copy or download individual documents.
- Export the full documentation set as a ZIP archive.
- Navigate between generated Markdown files without leaving the workspace.
- Responsive light and dark themes.
- Accessible shadcn/Base UI controls.
- Custom favicon, application icon, Open Graph image, metadata, sitemap, and robots routes.
- Consent-aware Vercel Analytics.
- Privacy, terms, and cookie information pages.
- Branded 404 page for unmatched routes.
Users can choose which sections to generate. A complete export looks like this:
resource-docs/
├── README.md
├── analysis-report.json
└── docs/
├── installation.md
├── configuration.md
├── exports.md
├── events.md
├── commands.md
├── dependencies.md
└── troubleshooting.mdGenerated links are relative and work both in the ResourceDocs preview and after exporting the files to a repository.
How it works
flowchart LR
A[ZIP, folder, or files] --> B[Safe ingestion]
B --> C[Static analysis]
C --> D[Verified fact model]
D --> E[Deterministic documentation]
D --> F[Optional Gemini writing]
E --> G[Markdown workspace]
F --> G
G --> H[Download or ZIP export]1. Safe ingestion
The analyze endpoint normalizes every submitted path, rejects
…