Home Knowledge Base VPS FiveM Guide to your FiveM server.cfg - everything you need to know
Article Support

Guide to your FiveM server.cfg - everything you need to know

Target Audience: New FiveM Developers Core Stack: Universal Framework Support (ESX, QB-Core, Qbox, etc.)

May 04, 2026 15:26 FiveM

IMPORTANT!
Before downloading or putting a script on your server, first check the creator's documentation. Each script works differently and may have specific requirements.

1. Network & Connectivity
These commands are the "address" of your server. They handle how players find and connect.

endpoint_add_tcp "0.0.0.0:30120" - Analogy - the front door - handles initial handshake.
endpoint_add_udp "0.0.0.0:30120" - Analogy - the highway - handles fast game data.
set sv_endpointPrivacy "true" - Invisible fence - hides your real IP from metadata.
sv_master1 "" - Private mode - leave empty to hide server during testing.
sv_maxclients "48" - The capacity - max players allowed (requires OneSync for >48).
load_server_icon "img_link" - Server logo: MUST be 96x96 pixels PNG format.
sets banner_connecting "banner_link" - Server banner - image shown during loading (PNG/GIF).

2. Security & Environment Integrity
Protect your server from cheaters and ensure everyone uses original game files.

set sv_scriptHookAllowed "0" - Blocks players from using external .asi mod menus.
set sv_pureLevel "1" - Forces clean game files. Level 1 ignores modified RPFs.
set sv_enforceGameBuild "3407" - Tells the server which GTA DLC build to run (e.g. 3407).
set sv_requestParanoia "3" - Mitigates HTTP requests aiming to crash the console.

3. Exploit Protection & Anti-Troll
Essential settings to block common trolling methods and reduce network lag.

set sv_filterRequestControl "2" - CRITICAL - Stops hackers from stealing control of entities.
set sv_enableNetworkedSounds "false" - Stops unnecessary sound syncing, reducing server lag.
set sv_enableNetworkedPhoneExplosions "false" - Stops modders from blowing up players' phones.
set sv_enableNetworkedScriptEntityStates "false" - Stops unnecessary traffic for 0.00ms optimization.

4. Identity & Discovery (Metadata)
This defines how your server appears in the FiveM browser.

sv_hostname "My Awesome Server ^1[RP]" - Main list name. Supports color codes (^1, ^2, etc.).
sets sv_projectName "My Awesome Project" - Name displayed on the server details page.
sets sv_projectDesc "Strict RP & Custom Cars" - Description of the gameplay style.
sets tags "roleplay, custom, optimized, jobs" - Keywords for search engine optimization.

5. Licenses & Tokens (Your IDs)
These link your server to official services. Keep these private!

sv_licenseKey "your_key_here" - The passport - Required to start the server (keymaster).
set steam_webApiKey "your_steam_key" - ID Verification - Recognizes players via Steam accounts.
set discord_bot_token "your_token" - The messenger - Connects server scripts to Discord.

6. Database Integration (oxmysql)
High-speed database management. Set this up in TxAdmin or server.cfg.

set mysql_connection_string "mysql://user:password@host/database?charset=utf8mb4"
set mysql_slow_query_warning "150"
set mysql_debug "false"

7. Starting Scripts (The Logic of Order)
Use 'ensure' to start scripts. The order is critical for stability.

Layer 1: Foundation (Libraries and DB)

ensure hardcap
ensure oxmysql
ensure ox_lib

Layer 2: The Brain (Framework Core)
ensure qb-core or es_extended / qbx_core

Layer 3: The Gameplay (Jobs, Cars, Maps)
ensure [your_scripts]

8. Admin Permissions (ACE Logic)
Add your ID to the admin group (replace with your identifier)
add_principal identifier.fivem:1111111 group.admin

Give the admin group permission to use all commands
add_ace group.admin command allow

Modern FiveM relies on State Bags. Always set OneSync to ON in txAdmin settings or use set onesync "1" in your config editor.