每个 RedM 资源都以 fxmanifest.lua 开头。对于荒野大镖客2,必须声明 game 'rdr3' 并确认 rdr3_warning 提示;本工具会自动添加这两行。
如何使用该工具
选择 fx_version(默认 adamant),脚本使用 Lua 5.4 时启用 lua54。
填写资源的名称、作者、描述和版本。
列出客户端、服务端和共享脚本(每行一个路径或通配符,如 client/*.lua)。
按需添加 ui_page、files 和 dependencies,然后复制或下载文件放入资源文件夹。
输出示例
rdr3_warning 行是 RedM 对资源要求的标准文本,原样取自 CitizenFX 文档。随后在 server.cfg 中添加“ensure 资源名”。
fx_version 'adamant'
game 'rdr3'
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
lua54 'yes'
client_scripts {
'client/*.lua',
}常见问题
- 为什么需要 rdr3_warning?
- 在 RedM 中,声明 game 'rdr3' 的资源还必须确认此消息,否则无法加载。本工具总会插入该行。
- FiveM 的 fxmanifest 能直接用于 RedM 吗?
- 仅结构可复用:把 game 'gta5' 改为 game 'rdr3' 并添加 rdr3_warning。两款游戏的原生函数不同,Lua 代码本身需针对 RedM 修改。
