VGKAMI
Advertise Get listed

Game Guides

RedM Server Settings Explained: The Best Config for Your Group

Published 12 min read

The best RedM configuration is the smallest one that reliably serves your group: identify the game with set gamename rdr3, bind both TCP and UDP to your provider-assigned game port, set sv_maxClients to a realistic attendance level, add a valid sv_licenseKey, enable the required OneSync mode, and load resources in dependency order. Keep those game-server settings in server.cfg. Use txAdmin for administration, moderation, monitoring, validation, and scheduled restarts; use TXHOST environment variables only when your host enforces ports, interfaces, game restrictions, or slot ceilings.

A private friends server can stay close to the vanilla recipe. A persistent roleplay server needs a maintained framework, database, backups, staff permissions, and restart procedures. A larger community must also verify Cfx subscription and hosting limits before raising the slot ceiling. The settings below separate those decisions so you can build a configuration that is supportable rather than merely large.

What should I put in server.cfg for a RedM server?

Start with a minimal, auditable file. Every token in the example marked with double braces is a value you must replace with your own host, port, or key.

set gamename rdr3
endpoint_add_tcp "0.0.0.0:{{GAME_PORT}}"
endpoint_add_udp "0.0.0.0:{{GAME_PORT}}"
sv_maxClients {{PLAYER_SLOTS}}
sv_licenseKey "{{CFX_LICENSE_KEY}}"
set onesync on

ensure mapmanager
ensure chat
ensure spawnmanager
ensure redm-map-one
ensure hardcap

gamename tells the server which game it runs; Cfx documents rdr3 as the RedM value, and the official vanilla setup uses set gamename rdr3. Without that identity setting, the rest of the file is not a valid RedM foundation.

Use the same provider-assigned game port for both endpoint lines. The game port is not the same thing as the txAdmin web-panel port. If your host supplies a non-default interface or port, follow that assignment instead of copying a port from another installation.

Keep secrets out of screenshots, public repositories, and support posts. The license key and any database credentials should be treated as credentials, not ordinary configuration text. A versioned private backup of the file makes recovery and rollback much easier.

How do the RedM endpoint settings work?

RedM clients need both transport protocols pointed at the reachable game endpoint. endpoint_add_tcp handles TCP traffic and endpoint_add_udp handles UDP traffic; omitting either can produce connection failures even when the process appears to be running.

Use the provider’s game port

Ask the host which external game port is assigned, then place that number in both endpoint declarations. Do not substitute the port shown for txAdmin’s browser panel. A panel that opens in your browser proves only that the administration service is reachable; it does not prove that the game endpoint is open.

Check reachability before changing resources

If players time out, first verify that the launch profile is using the intended server.cfg, that the process actually binds the assigned port, and that the host’s firewall or network policy permits both protocols. Resource errors can appear later in the console, but they cannot repair a wrong endpoint.

How many players can a RedM server support?

Cfx documents sv_maxClients values from 1 through 2048. That is a configuration range, not a performance guarantee: your subscription, host, server artifact, CPU and memory capacity, network, database, and resource stack can impose lower practical limits.

Configured slots Synchronization requirement in Cfx documentation Practical interpretation
1–31 OneSync is not required by the documented slot threshold. Suitable for a small test or friends server, provided its resources do not require OneSync features.
32–64 OneSync must be on or legacy. Choose the synchronization mode deliberately; the older compatibility mode has documented drawbacks.
65–2048 OneSync must be on. Confirm plan and host ceilings before changing the file, then test entity and population behavior with your actual resources.

Set the ceiling close to the number of people you expect to play at once. A 24-person group does not gain anything from declaring 200 slots, while an advertised high ceiling can create queue, moderation, and performance expectations your infrastructure cannot meet. Raise the value only after confirming the Cfx subscription and host limits that apply to your installation.

Why a larger number is not automatically better

The slot value limits concurrent connections; it does not allocate enough CPU, memory, database capacity, or network bandwidth by itself. Frameworks and scripts may create considerably more entities and database work as population grows. Treat the documented 2048 maximum as an upper configuration boundary, not as a promise that every artifact, plan, or resource combination can run there.

Should I use OneSync on or legacy?

Use on when your slot count or resources require it. Cfx describes on as the mode with full server-determined state awareness. Cfx also describes legacy as a compatibility mode that is not recommended because of performance issues and graphical glitches.

What OneSync changes

OneSync is Cfx’s custom synchronization system built on top of GTA Online’s codebase. Its documentation covers Infinity, routing buckets, culling, and state bags. Those features affect how entities and state are distributed, how interiors or instanced scenes can be separated, and how scripts exchange synchronized data.

When a small group can avoid it

A very small server may run without OneSync if its slot count is below the documented threshold and its resources do not depend on OneSync APIs. The moment you configure 32 or more slots, the documented requirement changes. At 65 slots and above, only on satisfies the stated requirement.

Why not select legacy by default

legacy can help a compatibility-bound setup, but it carries the performance and visual caveats in Cfx’s documentation. If a maintained resource or framework expects current OneSync behavior, moving to on is the safer direction; test the complete resource stack rather than assuming a mode switch alone fixes synchronization problems.

What is the difference between server.cfg, txAdmin, and TXHOST variables?

They control different layers. Mixing their jobs is a common reason an apparently correct setting has no effect.

Layer Use it for Do not use it as a substitute for
server.cfg Game identity, endpoints, slots, OneSync selection, license key, and resource start order. Host-enforced restrictions or day-to-day moderation workflows.
txAdmin Administration, moderation, monitoring, configuration validation, backups or working copies, and restart scheduling. txAdmin is preinstalled with FXServer. The game server’s endpoint declarations or license secret.
TXHOST environment variables Host-enforced ports, interfaces, game restrictions, or slot ceilings when the provider exposes those controls. Resource ordering and framework configuration.

If a host sets a value through its environment or control panel, that value may override what you expect from a local file. Read the provider’s instructions for the active profile before editing a line that appears to be ignored.

How should I load RedM resources?

Use ensure and load dependencies before the resources that need them. The community standalone RedM recipe includes mapmanager, chat, spawnmanager, redm-map-one, and hardcap. A framework recipe adds a substantially larger resource and database stack, so its documented order takes precedence over a short vanilla example.

Keep the baseline small

For a friends server, start with only the resources you can explain and maintain. Every additional script introduces another manifest, dependency, update path, and possible startup failure. Add one resource at a time and keep a known-working copy of the file.

Choose a framework before importing a framework recipe

Persistent roleplay groups generally choose a maintained framework such as VORP or RSG before copying a recipe. Frameworks determine which core resources, database connectors, character systems, and dependencies must start first. Do not mix fragments from unrelated recipes: a resource can load successfully while still failing later because its expected framework or database service is absent.

Refresh after resource changes

After adding, renaming, or removing a resource, refresh the resource list in txAdmin. Editing an existing resource file normally requires the resource or server restart specified by that resource’s instructions. A refresh discovers changes; it does not guarantee that already-running code has reloaded.

Which configuration fits my group?

Private friends server

Use the standalone recipe, set slots near expected attendance, and keep the resource list short. Enable OneSync only when the slot threshold or a resource requires it. Store the configuration and any working resource versions in private, versioned backups so one experiment can be reversed without rebuilding the server.

Persistent roleplay group

Decide on a maintained framework before importing its recipe. Plan for a database, dependency order, scheduled restarts, staff roles, and a documented backup routine. Your comparison should include not only player slots but also database complexity, resource count, staff workload, and who is responsible for updates and recovery.

Larger community

Confirm the Cfx subscription and host limits before raising slots. Use OneSync on, test entity and population behavior with the real framework and scripts, and monitor the server under the intended load. Managed hosting is worth considering when your team cannot consistently maintain artifacts, network ports, databases, permissions, and recovery procedures.

Evaluate every design on six axes: expected concurrent players, synchronization mode, framework and database complexity, resource count, administrative workload, and hosting responsibility. A smaller but well-maintained configuration is usually a better fit than a high slot number that nobody can troubleshoot.

Where do I change the server name and public-listing settings?

Startup settings, endpoints, resources, and secrets remain in the server configuration and its active profile. txAdmin’s current configuration documentation says the public server-list name, description, tags, language, and images moved to the Cfx Portal in the rollout dated 21 October 2026.

That separation explains why changing a local startup line may not alter the listing metadata players see. Manage listing fields in the portal, while keeping launch behavior and resource declarations in the profile’s configuration. Confirm that you are editing the profile actually used by the launch command; a perfectly edited inactive file has no effect.

What security settings belong in a production configuration?

Security is part of the server configuration, not an optional add-on.

  • Protect credentials: Keep sv_licenseKey and database credentials private. Replace exposed credentials immediately rather than merely deleting them from a recent copy.
  • Reduce public IP exposure: sv_endpointPrivacy can hide player IP addresses from public reports.
  • Limit staff powers: Use ACE rules or txAdmin permissions so moderators receive only the actions their role requires.
  • Back up before changes: Preserve a working configuration and a documented database backup before framework, artifact, or resource updates.
  • Separate duties: Keep game settings in the profile, operational controls in txAdmin, and host-enforced values in the provider’s environment or control panel.

Do not paste a full configuration into a public issue or chat room. Redact keys, database passwords, private endpoints, and staff identifiers before asking for help.

How do I edit and validate the configuration safely?

txAdmin’s CFG editor provides a controlled workflow, but the safest process is still incremental:

  1. Open the txAdmin CFG editor for the profile that the launch command actually uses.
  2. Save a private working backup before touching a line.
  3. Make one logically related change, such as adjusting slots or adding one resource.
  4. Validate the configuration and read the console from the first meaningful message, not from the final cascade of errors.
  5. Save only after the validation result is understood.
  6. Restart the resource or the whole server only when the setting or resource instructions require it.
  7. Reconnect with a test account, check the console, and record what changed before making the next edit.

One-change-at-a-time editing gives you a clear rollback point. If several resources and slot changes are applied together, a later failure cannot tell you which change caused it.

Why is my RedM server timing out or not showing?

Work from the earliest failure in the startup and connection path. Later console errors are often consequences of the first incorrect setting.

The process does not start

  • Confirm the active profile points to the intended server.cfg.
  • Verify that the launch path executes that file rather than another profile or an old backup.
  • Check that a valid license key is present and has not been exposed or revoked.
  • Read the first substantive console error and fix that condition before addressing subsequent messages.

Players cannot connect or receive a timeout

  • Confirm both TCP and UDP endpoint lines use the provider-assigned game port.
  • Check host firewall and network rules for that port.
  • Make sure you are not testing the txAdmin panel port as if it were the game port.
  • Verify that a host-enforced interface, port, or slot ceiling is not overriding local expectations through TXHOST settings.

The server runs but is not listed

  • Separate listing metadata from game startup: name, description, tags, language, and images are managed in the Cfx Portal after the 21 October 2026 migration.
  • Confirm the server itself starts cleanly and that its endpoint is reachable before troubleshooting listing metadata.
  • Check that the profile you edited is the profile being launched.

A resource fails after it was added

  • Check dependency order and whether every required resource is ensured.
  • Refresh the resource list after adding, renaming, or removing a resource.
  • Follow that resource’s restart instructions; a file edit may require a resource or full-server restart.
  • For framework recipes, verify the expected database service and connector rather than combining unrelated recipe fragments.

What should I monitor after the server works?

Operational stability matters more than a successful first boot. Schedule restarts through txAdmin when your framework or hosting plan benefits from them, and document who can perform emergency restarts. Keep a record of artifact updates, resource additions, configuration changes, and database backups so staff can identify what changed before an outage.

Review permissions as the staff team changes. A moderator who no longer needs administrative commands should not retain them indefinitely. Likewise, a resource removed from the configuration should be removed from backup notes and deployment instructions so it is not accidentally restored during recovery.

For a growing community, test the complete stack at the intended slot count, including entities, population behavior, framework jobs, database writes, and moderation tools. OneSync documentation covers Infinity, routing buckets, culling, and state bags; understanding which of those your scripts use helps you diagnose synchronization symptoms without changing unrelated settings.

What is the practical “best” configuration?

For most small groups, the practical best is a minimal standalone file with set gamename rdr3, both endpoints, a realistic slot ceiling, a valid license key, and only the resources you use. Add OneSync on when the documented slot threshold or your resources require it. Move to a framework only when persistent roleplay features justify the database and dependency workload.

For larger communities, the best configuration is the one your team can operate: verified plan limits, OneSync on, tested resources, scheduled administration, controlled permissions, private credentials, and recoverable backups. The maximum documented slot value is never a substitute for that operational discipline.

Frequently Asked Questions

Can I run a RedM server without a roleplay framework?

Yes. A standalone server can use the small community recipe and only the resources it needs. A framework becomes relevant when you need persistent characters, jobs, economy systems, and the database-backed features supplied by a maintained framework.

What are routing buckets used for in OneSync?

Routing buckets provide separated synchronization spaces, useful for instanced interiors, events, or private scenes where every player should not receive the same entity state. Their behavior is part of the OneSync documentation alongside Infinity, culling, and state bags.

Does setting 2,048 slots let any host accept 2,048 players?

No. The number is the documented sv_maxClients range, not a capacity certification. Subscription terms, host ceilings, hardware, network conditions, database workload, and resource behavior still determine what your installation can sustain.

What should I do before changing a framework or database resource?

Capture a working configuration and a documented database backup, then change one component at a time. Keep the previous resource version available so you can restore the last known-good combination if startup or data errors appear.