fxmanifest.lua ジェネレーター
FiveM や RedM のどんなリソースにも使える fxmanifest.lua を生成します。shared/client/server スクリプト、NUI ページ、files、依存関係、exports、lua54 に対応しています。
このツールと解説は今のところ英語です。
Resource
Scripts
NUI & files
data_file
Dependencies & exports
fx_version 'cerulean'
game 'gta5'
lua54 'yes'
name 'my_script'
description 'Basic client/server script'
version '1.0.0'
shared_scripts {
'config.lua',
}
client_scripts {
'client/*.lua',
}
server_scripts {
'server/*.lua',
}
How to use it
- Pick a starting point: Basic script, NUI resource or Vehicle pack.
- Add or remove scripts. The small
+ @ox_lib/init.luastyle buttons add common framework imports. - Download
fxmanifest.luainto your resource folder andensurethe resource in server.cfg.
Your manifest is saved in this browser, so you can come back and tweak it.
Load order
Scripts load in the order they are listed, and shared_scripts load before client and server scripts on each side. That is why @ox_lib/init.lua or @qbx_core/modules/lib.lua go at the top of shared_scripts, and config.lua should come before any file that reads Config. Paths starting with @ point into another resource, which needs to be started first (list it in dependencies).
A typical Qbox / ox_lib manifest
fx_version 'cerulean'
game 'gta5'
lua54 'yes'
name 'my_job'
version '1.0.0'
shared_scripts {
'@ox_lib/init.lua',
'@qbx_core/modules/lib.lua',
'config.lua',
}
client_scripts {
'@qbx_core/modules/playerdata.lua',
'client/*.lua',
}
server_scripts {
'@oxmysql/lib/MySQL.lua',
'server/*.lua',
}
dependencies {
'ox_lib',
'qbx_core',
'oxmysql',
}Vehicle packs
Put models (.yft, .ytd) in a stream folder, they are streamed automatically. Meta files need two things: a files entry so clients download them, and a data_file line so the game loads them. Globs such as data/**/vehicles.meta let you keep one folder per car.
Gotchas
ui_pagemust also be infiles, or the NUI frame stays blank. The generator adds it for you.fxmanifest.luareplaced the old__resource.lua. Do not ship both.- RedM resources need
game 'rdr3'plus the exactrdr3_warningline, which is added automatically. - Changing the manifest requires
refreshthenensure your_resourcein the server console.
コンフィグとコード のツールをもっと見る
server.cfg ジェネレーター
hostname、スロット数、OneSync、エンドポイント、タグ、リソース、ACE 権限まで揃った動く server.cfg を作成。
車両 Handling エディター
質量、駆動力、グリップ、サスペンションを画面上で調整し、handling.meta か実行時 Lua として書き出します。
服装デザイナー
服の .ydd や .ydr を .ytd と一緒に開き、3D または UV 上でレイヤー、テキスト、画像を使って描き、新しい .ytd を書き出します。
