fxmanifest.lua 생성기
FiveM이나 RedM 리소스용 fxmanifest.lua를 만듭니다: shared/client/server 스크립트, NUI 페이지, 파일, 의존성, exports, lua54까지.
이 도구와 설명은 아직 영어로만 제공됩니다.
Resource
Scripts
NUI and files
data_file
Dependencies and 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.
설정과 코드 도구 더 보기
의상 디자이너
의상 .ydd나 .ydr을 .ytd 파일과 함께 열어 3D나 UV 레이아웃 위에서 레이어, 텍스트, 이미지로 칠하고 새 .ytd 텍스처로 내보냅니다.
YMAP 빌더
좌표로 프롭을 배치하면 회전, extents, LOD 거리가 제대로 들어간 .ymap XML이 나옵니다.
구역 생성기
실제 GTA V 지도 위에 2D나 3D로 구역을 그리고 ox_lib, PolyZone, ox_target, qb-target 코드로 복사하세요.
