Repository navigation
Comparing changes
Open a pull request
base repository: TMHSDigital/CFX-Developer-Tools
base: v0.13.0
head repository: TMHSDigital/CFX-Developer-Tools
compare: v0.14.0
- 10 commits
- 31 files changed
- 3 contributors
Commits on Nov 21, 2026
-
fix: extract real page text for the docs search index (#24)
extract_snippet cut a fixed 10 KB window after the first <main>/<article>/ <body> match, which on docs.fivem.net is the navigation, so every page got the same truncated '<a class="active" href' snippet and search_docs could only match titles and URLs. - Parse pages with html.parser and take the text of div.docContent, skipping script/style/nav and the h1 (title is stored separately), falling back to main/article. - Strip the " - Cfx Documentation" title suffix. - Check the fetch threshold before writing and replace the file atomically, so a failed run leaves the existing index untouched. - Fail the update workflow when snippets are mostly empty, markup, or identical. - Regenerate docs_index.json (82 pages, 82 distinct snippets). Fixes #24 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0be581d - Browse repository at this point
Copy the full SHA 0be581dView commit details -
fix: stop scaffold_resource_tool from overwriting existing files (#25)
The scaffolder wrote into a directory named after the raw name argument, relative to the server's working directory, opening every file with "w". Re-scaffolding an existing name silently replaced the user's code. - Validate the resource name (1-64 chars of a-z, 0-9, '-', '_'). - Add output_path (default: workspace_path, then CFX_SCAFFOLD_ROOT, then the working directory), resolve it with realpath and require the target to stay inside it. - Refuse to write into an existing non-empty directory, and open files with mode "x", unless overwrite=True. - Escape values written into Lua strings via a shared lua_string helper. - Report the absolute output path in the summary. Fixes #25 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0f1822c - Browse repository at this point
Copy the full SHA 0f1822cView commit details -
fix: generate valid Lua manifests from scanned and supplied scripts (#26
) generate_manifest printed table entries on separate lines without commas, so any manifest with more than one script was a Lua syntax error. The workspace scan also dropped shared scripts and always pointed ui_page at html/index.html. - Render every list block with comma-separated, escaped entries. - Put scanned and unclassified scripts in shared_scripts; classify caller scripts by cl_/sv_ prefix or client/server folder. - Use either the scanned file list or the default globs, never both, and skip a side's default glob when the caller supplied scripts for it. - Derive ui_page and files from the detected NUI entry page (find_nui_page prefers web/dist/index.html over sources). - Escape author, description, dependency and script strings, dedupe dependencies, and read quoted author/description values whole. Fixes #26 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8e550e1 - Browse repository at this point
Copy the full SHA 8e550e1View commit details -
fix: define the Delay helper wherever JS code awaits it (#27)
FiveM's JavaScript runtime has no global Delay (unlike C#, where it is BaseScript.Delay), so the JS template, the thread-loop snippet and the scaffolded client/main.js threw a ReferenceError on every tick. - Define `const Delay = (ms) => new Promise(...)` in the JS template, the thread-loop snippet and the scaffold output. - Show the helper in the client-server-patterns JS example and say in the performance skill and the JS rule that it must be defined. Verified by running the template, snippet and a freshly scaffolded client/main.js under node with setTick stubbed. Fixes #27 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fd12569 - Browse repository at this point
Copy the full SHA fd12569View commit details -
fix: load ox_lib in ox_core template and generated manifests (#29)
The ox_core template and the scaffolder use `require '@ox_core.lib.init'`, but `require` for resource paths comes from ox_lib, which the manifests never loaded, so the scripts failed at load time. - templates/oxcore: depend on ox_lib and ox_core and load '@ox_lib/init.lua' before config.lua. - Add FRAMEWORK_LUA_EXTRAS in manifest_common and use it in both the scaffolder and generate_manifest for oxcore Lua resources. - Document the requirement in the framework-detection skill. Fixes #29 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ce8b804 - Browse repository at this point
Copy the full SHA ce8b804View commit details -
fix: start playtime-tracker sessions with the callback scalar export (#…
…31) startSession passed a Lua callback as the third argument of exports.oxmysql:scalar_async, which takes no callback (it returns a promise), so sessions were never created, nothing was saved, and /playtime always said "still loading". Standalone mode also listened for playerSpawned, a client-only event. - Use exports.oxmysql:scalar(query, params, cb) and ignore results that arrive after the player dropped or was already loaded. - Start standalone sessions from the server-side playerJoining event. - On resource start, begin sessions for players already online. - Correct the README's prepared-statement example. Fixes #31 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3f2dbb0 - Browse repository at this point
Copy the full SHA 3f2dbb0View commit details -
fix: make C# scaffold and template build and match their manifests (#28)
The scaffolded server script called GetCurrentResourceName without the Native.API import, its csproj reference had no path, and no project set an AssemblyName, so nothing produced the *.net.dll files the scaffold, the generator and the template listed (each listed different ones). The template's server handler also did not match its delegate. Adopt one layout everywhere: Client/<name>.Client.csproj and Server/<name>.Server.csproj referencing CitizenFX.Core.Client/.Server, building dist/<name>.<Side>.net.dll. The scaffold and generate_manifest share csharp_dll_paths/csharp_csproj, the template follows the same layout, and the resource-scaffolding and fxmanifest skills document it. Verified with dotnet build of templates/csharp and of a freshly scaffolded resource (0 errors; DLLs land where the manifests point), and that scaffold and generate_manifest emit identical C# script entries. Fixes #28 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9ed46d1 - Browse repository at this point
Copy the full SHA 9ed46d1View commit details -
fix: use vite-plugin-svelte 5 in nui-svelte template (#30)
@sveltejs/vite-plugin-svelte 4 declares a peer dependency on vite ^5, but the template pins vite ^6, so `npm install` failed with ERESOLVE. Version 5 of the plugin supports vite ^6 and svelte ^5. Verified with a clean `npm install` and `npm run build` of a copy of templates/nui-svelte/web. Fixes #30 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 49b8e5b - Browse repository at this point
Copy the full SHA 49b8e5bView commit details -
feat: register the MCP server for plugin installs and other clients (#32
) The server only worked from this repo's .cursor/mcp.json: the plugin manifest declared no MCP server, and the data path defaulted to the CWD-relative ./data, so other launches got "native database not found". - Default the data directory to mcp-server/data next to server.py; add CFX_DATA_PATH and keep CFX_NATIVES_PATH as an alias. - Add mcp.json (${CURSOR_PLUGIN_ROOT}/mcp-server/server.py) and point plugin.json "mcpServers" at it, as the sibling Developer Tools plugins do. - Add a root .mcp.json for Claude Code and document Claude Code and generic stdio setup in the README. Verified the tools return natives, events and docs results when the server module is loaded from an unrelated working directory. Fixes #32 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2a2e46a - Browse repository at this point
Copy the full SHA 2a2e46aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3e923f - Browse repository at this point
Copy the full SHA c3e923fView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.13.0...v0.14.0