Генератор server.cfg
server.cfg для RedM с set gamename rdr3, принудительным билдом и пресетами из стандартного рецепта txAdmin и рецептов VORP и RSG.
Читать документациюДанные сервера
Слоты, сеть и игра
Ключи и оформление
Безопасность
База данных
Включи, чтобы добавить mysql_connection_string для oxmysql.
Голос (pma-voice)
Включи, чтобы добавить convar для pma-voice и убедиться, что он запущен.
Размеры пулов
increase_pool_size с лимитами RedM из docs.fivem.net. Значение выше лимита сервер игнорирует, поэтому здесь оно ограничено.
Пулы не меняются. Увеличивайте пул, только когда консоль сообщает, что он заполнен.
Ресурсы
Права (ACE)
Идентификаторы есть в txAdmin (Players, затем игрок) или в GetPlayerIdentifiers(source). Вставляй только значение, префикс license: не обязателен.
add_principal child parent даёт дочернему всё, что есть у родительского.
Задай sv_licenseKey. Ключ берётся на portal.cfx.re.
Идентификатор админа не задан. Прав админа у тебя не будет.
# ==========================================================
# server.cfg (RedM)
# Generated with fivemad.com/redm/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 RedM Server ^7| Western RP"
sets sv_projectName "My RedM Server"
sets sv_projectDesc "Western roleplay on RedM"
sets locale "en-US"
sets tags "default"
## Slots and game
set gamename rdr3
sv_maxclients 48
set onesync on
set sv_enforceGameBuild 1491 # September 2022 update
## Security
sv_endpointprivacy true
## Keys
set steam_webApiKey "none" # https://steamcommunity.com/dev/apikey
sv_licenseKey "changeme" # https://portal.cfx.re
## Standalone settings (from its txAdmin recipe)
set resources_useSystemChat true
## Resources (load order matters)
# Default cfx resources (default-redm recipe)
ensure mapmanager
ensure chat
ensure spawnmanager
ensure redm-map-one
ensure hardcap
## 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
Эти заметки пока на английском.
What makes it a RedM server
Two lines: set gamename rdr3 and sv_enforceGameBuild 1491, the one RedM build docs.fivem.net lists. The stock resources are the ones the officialdefault-redm recipe starts:mapmanager, chat, spawnmanager, redm-map-one and hardcap.
Framework presets
- VORP: the resource order, convars and ACE lines of VORPCORE/VORP_txAdmin, the recipe txAdmin itself lists.
- RSG: the same from Rexshack-RedM/txAdminRecipe, including its rsgcore.god to rsgcore.helper permission chain.
Folder names such as [standalone] and [framework] are the folders those recipes download into. If you install by hand, keep the same folders or edit the list.
Pool sizes
RedM accepts increase_pool_size for a different set of pools than FiveM, with its own limits. The list here is the RedM column of the table on docs.fivem.net. Raise a pool only when the console says it is full.
Before you start it
- Every resource you add needs
game 'rdr3'and therdr3_warningline in its manifest, or it will not start. - The license key comes from portal.cfx.re, the same as for FiveM.
- Everything stays in your browser. The form is saved locally, separate from the FiveM generator.
Ещё инструменты RedM
- Конструктор промптовСоберите группу промптов RDR2 (нажатие, удержание или многократное нажатие) на контролах и таймингах удержания самой игры, посмотрите превью и скопируйте Lua.
- Генератор экрана загрузкиРесурс экрана загрузки для RedM: фоновая картинка или видео, музыка, настоящий прогресс-бар и строки лога, всё скачивается zip-архивом.
- Конвертер фоторежимаПревращает файлы фоторежима RDR2 (PRDR) в картинки JPEG прямо в браузере. Ничего не загружается.