server.cfg ジェネレーター
フォームに入力するだけで、FiveM サーバーにそのまま置ける整った server.cfg が手に入ります。OneSync、エンドポイント、タグ、ロケール、リソース、ACE 権限まで含めてコメント付きで出力します。
ツールの下の解説は今のところ英語です。
サーバーの情報
スロット、ネットワーク、ゲーム
キーとブランディング
セキュリティ
データベース
オンにすると oxmysql 用の mysql_connection_string を追加します。
ボイス (pma-voice)
オンにすると pma-voice の convar を追加し、起動されるようにします。
Resource
権限 (ACE)
identifier は txAdmin (Players からプレイヤーを選ぶ) か、 GetPlayerIdentifiers(source). で調べられます。値だけを貼り付けてください。 license: の接頭辞は省略できます。
add_principal child parent は child に parent の持つものすべてを継承させます。
sv_licenseKey を設定してください。キーは portal.cfx.re で取得できます。
管理者の identifier が設定されていません。このままでは管理者権限を持てません。
# ==========================================================
# server.cfg
# Generated with fivemad.com/tools/server-cfg-generator
# Docs: https://docs.fivem.net/docs/server-manual/setting-up-a-server/
# ==========================================================
#
# txAdmin: start the server from txAdmin, not with +exec.
# txAdmin reads the port from the endpoint lines below, so keep them.
# Restarts, schedules and bans are handled in the txAdmin panel.
## Networking
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
## Server identity
sv_hostname "^5My Server ^7| Serious RP | Discord: example"
sets sv_projectName "My Server"
sets sv_projectDesc "Serious roleplay with custom jobs and an active staff team"
sets locale "en-US"
sets tags "default"
## Slots and game
sv_maxclients 48
set onesync on
set sv_enforceGameBuild 3258 # Bottom Dollar Bounties
## Security
sv_scriptHookAllowed 0
sv_pureLevel 1 # blocks modified game files, allows audio and graphics mods
sv_endpointprivacy true
## Keys
set steam_webApiKey "none" # https://steamcommunity.com/dev/apikey
sv_licenseKey "changeme" # https://portal.cfx.re
## Resources (load order matters)
# Default cfx resources
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure baseevents
## Permissions
add_ace group.admin command allow # all commands
add_ace group.admin command.quit deny # but not quit
# add_principal identifier.license:xxxxxxxx group.admin # add yourself here
How to use it
- Pick your framework. It fills a working
ensureorder and the matching permission lines. - Fill in the hostname, license key, slots and game build. Warnings on the right point out common mistakes.
- Add yourself as admin with your license or Discord identifier.
- Download
server.cfginto your server-data folder (next to theresourcesfolder).
Everything stays in your browser, including the license key and database password. The form is saved locally so you can come back to it.
Starting the server
With txAdmin, point the deployer or Settings, then FXServer, at this file. Without txAdmin, start FXServer from the server-data folder:
# Windows
C:\FXServer\server\FXServer.exe +exec server.cfg
# Linux
bash ~/FXServer/server/run.sh +exec server.cfgLoad order
Resources start in the order they are listed. Libraries such as oxmysql and ox_lib must come before the framework core, and the core (qb-core, qbx_core, es_extended) before any script that uses it. ensure [folder] starts everything inside a bracketed folder and you do not control the order inside it, so ensure dependencies explicitly before the folder.
OneSync and slots
set onesync onis what almost every modern resource expects. Without OneSync the cap is 32 players.- Up to 48 slots works with any key. Going higher needs an Element Club subscription on the Cfx.re account that owns the key.
sv_enforceGameBuildmust be set before players join. Changing it makes clients download the matching game build on their next connect.
ACE permissions in short
# give a group a permission
add_ace group.admin command allow
# put a player (or group) inside a group
add_principal identifier.license:abc123 group.admin
# let one group inherit another
add_principal group.admin group.modCheck a permission in Lua with IsPlayerAceAllowed(source, 'command.kick'). After editing ACE lines you can apply them live by pasting them into the server console.
Gotchas
- Do not commit
server.cfgto a public repo: it holds your license key and database password. Move secrets to a separate file andexec secrets.cfg. - Special characters in the database password must be URL-encoded in
mysql_connection_string. The generator does that for you. setrconvars are replicated to clients,setsconvars are shown publicly in the server list, plainsetstays on the server.
コンフィグとコード のツールをもっと見る
服装デザイナー
服の .ydd や .ydr を .ytd と一緒に開き、3D または UV 上でレイヤー、テキスト、画像を使って描き、新しい .ytd を書き出します。
YMAP ビルダー
座標を指定してプロップを配置し、回転、extents、LOD 距離が正しい .ymap XML を出力します。
ゾーン作成ツール
本物の GTA V マップ上に 2D または 3D でゾーンを描き、ox_lib、PolyZone、ox_target、qb-target のコードとしてコピーできます。
