FiveM-Server einrichten: Schritt-für-Schritt-Anleitung
Vollständige Anleitung zur FiveM-Server-Installation auf REXE VDS: txAdmin-Konfiguration, Port-Einstellungen und Leistungsoptimierung für GTA V Roleplay-Server.
FiveM Server-Leistungsoptimierung. Resource-Verwaltung, OneSync, Datenbankoptimierung und Client-FPS-Verbesserungen.
FiveM is a multiplayer modification framework running on GTA V. High player counts and complex resources can significantly impact server performance. This guide covers FiveM server performance optimization, resource management, OneSync configuration, database optimization, and client FPS improvements.
| Resource | 32 Slots | 64 Slots | 128+ Slots |
|---|---|---|---|
| CPU | 4 Cores | 6+ Cores | 8+ Cores |
| RAM | 8 GB | 16 GB | 32+ GB |
| Disk | 50 GB SSD | 100 GB NVMe | 200+ GB NVMe |
| Network | 50 Mbps | 100 Mbps | 200+ Mbps |
OneSync is FiveM's advanced synchronization system required for high player counts.
# Enable OneSync
set onesync on
set onesync_enableInfinity true
set onesync_enableBeyond true
# Player limit
sv_maxclients 128
# Network settings
set sv_enforceGameBuild 3095
set sv_pureLevel 2
set sv_scriptHookAllowed 0
# Performance settings
set sv_projectName "REXE FiveM Server"
set sv_hostname "REXE FiveM"
| Mode | Description | Player Limit |
|---|---|---|
| off | OneSync disabled | 32 |
| on | Standard OneSync | 64 |
| on + Infinity | Advanced sync | 128+ |
| on + Beyond | Long-range sync | 2048 |
set sv_resourceMonitor true
set sv_resourceMonitorInterval 5000
From server console:
resmon 1
-- BAD: Runs every frame
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
end
end)
-- GOOD: Runs at intervals
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000) -- Once per second
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
end
end)
[mysqld]
innodb_buffer_pool_size = 2G
innodb_log_file_size = 512M
innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
max_connections = 200
query_cache_type = 1
query_cache_size = 128M
set mysql_connection_string "mysql://user:password@localhost/fivem?charset=utf8mb4&connectionLimit=50"
-- BAD: Query every time
Citizen.CreateThread(function()
while true do
Citizen.Wait(5000)
local result = MySQL.query.await('SELECT * FROM users WHERE id = ?', {playerId})
end
end)
-- GOOD: Use cache
local playerCache = {}
function GetPlayerData(playerId)
if playerCache[playerId] then return playerCache[playerId] end
local result = MySQL.query.await('SELECT * FROM users WHERE id = ?', {playerId})
playerCache[playerId] = result
return result
end
set sv_streamingMemoryLimit 2048
set net_statsFile "netstats.log"
set sv_endpointPrivacy true
set rateLimiter_stateBagFlood_rate 75
set rateLimiter_stateBagFlood_burst 150
| Port | Protocol | Usage |
|---|---|---|
| 30120 | TCP + UDP | FiveM game port |
| 40120 | TCP | txAdmin web panel |
sudo ufw allow 30120/tcp comment "FiveM TCP"
sudo ufw allow 30120/udp comment "FiveM UDP"
sudo ufw allow 40120/tcp comment "txAdmin"
sudo ufw reload
txAdmin is the FiveM server management panel:
# txAdmin comes bundled with FiveM
# Web panel: http://SERVER_IP:40120
resmon 1 # Resource monitor
status # Player list
netgraph 1 # Network graph
FiveM server performance optimization is achieved through resource management, OneSync configuration, database optimization, and network settings. Regular performance monitoring and resource profiling ensure your server runs at peak performance. REXE VDS powerful infrastructure and Path.net DDoS protection keep your FiveM server running securely.
OneSync ist FiveMs fortschrittliches Synchronisierungssystem. Es wird für mehr als 32 Spieler benötigt.
8 GB für 32 Slots, 16 GB für 64 Slots, 32 GB oder mehr für 128+ Slots.
Geben Sie 'resmon 1' in der Server-Konsole ein, um den Resource Monitor zu öffnen.
Erhöhen Sie innodb_buffer_pool_size, aktivieren Sie den Query-Cache und cachen Sie häufig verwendete Daten in Lua.
30120 (TCP+UDP) für den Spielport und 40120 (TCP) für das txAdmin-Webpanel.
Vollständige Anleitung zur FiveM-Server-Installation auf REXE VDS: txAdmin-Konfiguration, Port-Einstellungen und Leistungsoptimierung für GTA V Roleplay-Server.
Vollständige Anleitung zur Minecraft-Server-Installation auf REXE VDS: Paper/Spigot, Java-Konfiguration, Plugin-Verwaltung und Leistungsoptimierung für stabiles Gameplay.
Vollständige Anleitung zur CS2 Dedicated-Server-Installation auf REXE VDS: SteamCMD, GSLT-Token, Serverkonfiguration, Spielmodi und DDoS-Schutz mit Path Panel.