Skip to content

fix(xtask): migrate native sources to static.cfx.re - #16

Open
ihyajb wants to merge 1 commit into
mainfrom
fix/native-sources-static-cfx
Open

ihyajb wants to merge 1 commit into
mainfrom
fix/native-sources-static-cfx

Conversation

@ihyajb

@ihyajb ihyajb commented Oct 3, 2026

Copy link
Copy Markdown
Member

Changes

Switch xtask/src/main.rs native generation from deprecated runtime.fivem.net/doc hosting to static.cfx.re/natives for both natives.json and natives_cfx.json. Future generation will consume the updated native names, signatures, documentation, and Enhanced-related APIs from the static datasets. These sources belong to qbx-lua, whose language server is bundled by qbx-editor; this also aligns with the static URLs used by ihyajb/rage-lua-natives/main.ts.

Full dataset comparison (2026-10-02, keyed by namespace and exact hash):

  • GTA: 6,416 → 6,436 entries; 21 added, 1 removed, and 183 changed. 42 existing entries gain or change names, e.g. _IS_VEHICLE_MOD_HSW_EXCLUSIVE → IS_VEHICLE_MOD_GEN9_EXCLUSIVE. The removed entry is the old lowercase-hash _GET_CUTSCENE_END_TIME declaration; the static data corrects that hash to SET_CUTSCENE_ORIGIN_AND_ORIENTATION and declares GET_CUTSCENE_END_TIME at 0x971D7B15BCDBEF99.
  • Cfx: 943 → 973 entries; 30 added, none removed, and 2 changed. All 30 additions explicitly state GTAV Enhanced-only support, including CREATE_COLSHAPE_POLYGON, UNREGISTER_COMMAND, and RECORDER_START_RECORDING.
  • MumbleCreateChannel (MUMBLE_CREATE_CHANNEL, 0x262663C5) already exists identically in both Cfx datasets with apiset: server. It is a Cfx server native, not a new or Enhanced-exclusive native.

This PR changes only the two source URLs; checked-in generated data is left for the existing native update workflow.

Checks

  • Passed git diff --check; verified the diff contains only the requested two URL replacements.
  • Downloaded and parsed all four public datasets and compared every namespace/hash entry and changed field, including names, parameters, return types, aliases, documentation, and API/game metadata.
  • Verified the Enhanced-only descriptions on all 30 Cfx additions and the unchanged server declaration of MumbleCreateChannel.
  • Could not run cargo fmt --all --check, cargo clippy --workspace --all-targets --locked -- -D warnings, cargo test --workspace --locked, or cargo xtask natives: this machine has no installed Rust/Cargo toolchain. The existing PR CI runs formatting, Clippy, and workspace tests on Linux and Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant