📄server.cfg

這只是範例

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#   _____  .__       .__           _________ __                         #
#  /  _  \ |  |___  _|__| ______  /   _____//  |_  ___________   ____   #
# /  /_\  \|  |\  \/ /  |/  ___/  \_____  \\   __\/  _ \_  __ \_/ __ \  #
#/    |    \  |_\   /|  |\___ \   /        \|  | (  <_> )  | \/\  ___/  #
#\____|__  /____/\_/ |__/____  > /_______  /|__|  \____/|__|    \___  > #
#        \/                  \/          \/                         \/  #
#                                                                       #
#                       Discord: alvis_0362                             #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

# 使用的port
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"


# 伺服器列表國家
sets locale "zh-TW"

# FiveM金鑰以及Steam連動API
sv_licenseKey "你的金鑰放這邊"
set steam_webApiKey "你的steamAPI放這"

# FiveM_Social_feeds
sets activitypubFeed [email protected]

# 伺服器標籤
sv_hostname "伺服器名稱1"
sets tags "伺服器名稱2"
sets sv_projectName "伺服器名稱3"
sets sv_projectDesc "伺服器名稱4"

# SQL設定
set mysql_connection_string "mysql://root:[你的密碼]@localhost/[你的資料庫名稱]?waitForConnections=true&charset=utf8mb4"

# 伺服器圖標
load_server_icon logo.png

# 伺服器人數限制
sv_maxclients 64

# 指令權限設定
add_principal group.admin group.user
add_ace group.admin command allow
add_ace group.admin command.save allow
add_ace group.admin command.screenshot allow
add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
add_ace resource.es_extended command.remove_principal allow
add_ace resource.es_extended command.stop allow
add_ace resource.ox_lib command.add_ace allow
add_ace resource.ox_lib command.remove_ace allow
add_ace resource.ox_lib command.add_principal allow
add_ace resource.ox_lib command.remove_principal allow

# 管理員設定
add_principal identifier.steam:12345678910ABCD group.admin 
add_principal identifier.steam:12345678910ABCD group.admin

# pma-voice 語音設定
# ----------------
setr voice_enableRadioAnim 1
setr voice_useNativeAudio true
setr voice_useSendingRangeOnly true

# ESX 語言設定
# -----------------------------------------------------------
setr esx:locale "en"

# 執行其他插件
exec 插件.cfg
exec 地圖.cfg
exec 車輛.cfg
exec 武器.cfg
exec 飾品.cfg

# 關閉所有NPC
set onesync_population false


# Pool Size Settings 提高伺服器最大資源限額
# ------------------
increase_pool_size "CMoveObject" 75               # Max: 75
increase_pool_size "FragmentStore" 14000          # Max: 14000
increase_pool_size "OcclusionInteriorInfo" 20     # Max: 20
increase_pool_size "OcclusionPathNode" 5000       # Max: 5000
increase_pool_size "OcclusionPortalEntity" 750    # Max: 750
increase_pool_size "OcclusionPortalInfo" 750      # Max: 750
increase_pool_size "PortalInst" 225               # Max: 225
increase_pool_size "ScaleformStore" 200           # Max: 200
increase_pool_size "StaticBounds" 5000            # Max: 5000
increase_pool_size "TxdStore" 26000               # Max: 26000

Last updated