[Release] Carcols Fixer (Free, open-source siren / light / modkit ID conflict fixer)

[Release] Carcols Fixer (Free, open-source siren / light / modkit ID conflict fixer)-FiveM插件网
[Release] Carcols Fixer (Free, open-source siren / light / modkit ID conflict fixer)
此内容为免费资源,请登录后查看
火种0
免费资源

图片[1]-[Release] Carcols Fixer (Free, open-source siren / light / modkit ID conflict fixer) - FiveM插件网-FiveM插件网

Hey everyone.

If you’ve ever added a new car pack and watched the lightbars on three other vehicles break, you already know the problem. GTA V only gives you 255 siren slots, 255 light slots, and 1023 modkit slots, and most packs don’t coordinate their numbering. The moment two cars land on the same ID, sirens flash the wrong pattern, lightbars show the wrong color, modkits go missing from LSC.

The usual fix is opening everycarcols.metaby hand. Then you add another pack and do it all again.

I builtcarcols-id-fixerbecause I didn’t think anyone should have to pay 20 euros for the script that solves this. It’s one file, ~600 lines, MIT licensed, zero dependencies.

What it does

  • Scans everycarcols.metaandcarvariations.metain yourresources/tree
  • Finds every duplicate siren, light, and modkit ID across every pack at once
  • Picks a free number inside the valid range and rewrites the loser
  • Updates the matching<Item>N_kitname</Item>references incarvariations.metaautomatically so the engine still finds the kit
  • Saves a.bakof every changed file before touching it
  • One-command rollback (node . --revert) restores every original

Built for messy real-world packs

  • Handles packs where the kitName number doesn’t match the<id>(more common than you’d think)
  • Skips engine-default modkit0
  • Catches out-of-range IDs and reassigns them to valid slots
  • Preserves formatting, comments, indents, and line endings byte-for-byte
  • ignorelist in config so you can keep specific resources untouched

How to run it

Drop the folder next to yourserver.cfg:

fxserver/
- server.cfg
- resources/
- carcols-id-fixer/

Then:

cd carcols-id-fixer
node . # find clashes, fix them, save backups
node . --revert # roll everything back
node . scan # report only, no writes
node . fix --dry # preview without writing

Restart your vehicle resources after a fix and you’re done.

Why free

Honestly because the math behind this script is not worth €20 to anyone, and I think the FiveM community is better when this kind of basic infrastructure is open.

Download

:

Clone it, read the README, run it on a backup first if you’re nervous. Issues and PRs welcome.


Code is accessible| Yes
Subscription-based| No
Lines (approximately)| 600
Requirements| Node.js 18+
Support| Yes (via Issues)

© 版权声明
THE END
喜欢就支持一下吧
点赞12 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容