-
Notifications
You must be signed in to change notification settings - Fork 51
/
server.cfg
168 lines (140 loc) · 7.93 KB
/
server.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
## You CAN edit the following:
{{serverEndpoints}}
sv_maxclients {{maxClients}}
set steam_webApiKey "none"
sets tags "default, deployer, qbox"
## You MAY edit the following:
sv_licenseKey "{{svLicense}}"
sv_hostname "{{serverName}} built with {{recipeName}} by {{recipeAuthor}}!"
sets sv_projectName "[{{recipeName}}] {{serverName}}"
sets sv_projectDesc "{{recipeDescription}}"
sets locale "en-US"
load_server_icon myLogo.png
set sv_enforceGameBuild 3095
set resources_useSystemChat true
set mysql_connection_string "{{dbConnectionString}}"
# Voice config
exec voice.cfg
# Qbox config
setr qb_locale "en"
setr qbx:enableBridge "true" # When true, enables the qb-core bridge for qbx_core
set qbx:enableQueue "true" # When true, enables qbx_core's built-in queue system
set qbx:bucketLockdownMode "inactive" # Sets the lockdown mode as inactive read here: https://docs.fivem.net/natives/?_0xA0F2201F
set qbx:discordLink "discord.gg/qbox" # Sets the servers discord link
set qbx:max_jobs_per_player 1 # Sets the number of jobs per player
set qbx:max_gangs_per_player 1 # Sets the number of gangs per player
set qbx:setjob_replaces "true" # When true, the SetJob function deletes the previous primary job of the player before setting the new one
set qbx:setgang_replaces "true" # When true, the SetGang function deletes the previous primary gang of the player before setting the new one
set qbx:cleanPlayerGroups "true" # When true, on server startup, the database will be checked for any groups/grades players have that are not in config files and removes them from the database if so
set qbx:allowMethodOverrides "true" # When true, enables the ability of resources to override existing methods in the player object
set qbx:disableOverrideWarning "false" # When true, disables warnings from resources overriding existing methods in the player object
setr qbx:enableVehiclePersistence "false" # When true, player vehicles marked for persistence will be respawned when deleted
# Message displayed to players in the chat after loading in
setr qbx:motd "<p style='padding: 1rem; background-color: rgb(30, 30, 30); border-radius: 1rem; text-align: center;'><span style='color: rgb(40, 200, 40);'>Welcome to Qbox!</span><br>Learn more at <span id='link' style='color: rgb(100, 100, 255);' onclick='window.invokeNative(\"openUrl\", \"https://docs.qbox.re/\")'>docs.qbox.re</span></p><style>span#link:hover { cursor: pointer; }</style>"
# illenium-appearance locale config
setr illenium-appearance:locale "en"
# Renewed-Weathersync config
setr weather_disablecd true
# Ox resources config
exec ox.cfg
# NPWD config
set npwd:framework "qbx"
set SCREENSHOT_BASIC_TOKEN insert_token
set NPWD_AUDIO_TOKEN insert_token
# loadscreen config
setr loadscreen:externalShutdown true
set loadscreen:primaryColor "#f1e542"
set loadscreen:shadowColor "#1a18077f"
# These resources will start by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
stop basic-gamemode
ensure hardcap
ensure baseevents
# Qbox & Extra stuff
ensure ox_lib
ensure qbx_core
ensure ox_target
ensure [ox]
ensure [qbx]
ensure [standalone]
ensure [voice]
ensure [npwd-apps]
ensure qbx_npwd
ensure npwd
## Permissions ##
{{addPrincipalsMaster}}
exec permissions.cfg
# This is an aggregated list of possible helpful convars for server owners.
# The required artifacts version may vary so please check if said convar applies to you.
# A string variable that can be used to set the server as "private", making it not possible to join by using the server browser UI (the server connect button will be disabled).
# Default: "https://servers-ingress-live.fivem.net/ingress"
# Type: string
# set sv_master1 "" # Uncomment to mark the server as private
# Variance is how likely the user's id will change for a given provider (i.e. 'steam', 'ip', or 'license'). As an integer from 1-5 (default 5); from least to most likely to change.
# Default: 5
# Type: int
set sv_authMaxVariance 5
# Trust is how unlikely it is for the user's identity to be spoofed by a malicious client. As an integer from 1-5 (default 1); from least to most trustworthy.
# (5 being a method such as external three-way authentication).
# Default: 1
# Type: int
set sv_authMinTrust 1
# This helps counter proxy-based HTTP floods. Find more info here: https://docs.fivem.net/docs/server-manual/server-commands/#sv_requestparanoia-newvalue
# If set to level 2 greater, all requests made to info.json, dynamic.json and players.json related endpoints will return "Nope."
# Default: 0
# Type: int
set sv_requestParanoia 0
# Used to block REQUEST_CONTROL_EVENT routing based on a configurable policy. Find more info here: https://docs.fivem.net/docs/server-manual/server-commands/#sv_filterrequestcontrol-mode
# Default: 0
# Type: int
set sv_filterRequestControl 0
# Used if sv_filterRequestControl is set to 1 or 3. Allows you to set after how long (based on entity creation time in milliseconds) an entity should be blocked from a REQUEST_CONTROL_EVENT
# Default: 30000
# Type: int
set sv_filterRequestControlSettleTimer 30000
# Used to prevent users from using modified client files. See: https://docs.fivem.net/docs/server-manual/server-commands/#sv_purelevel-level
# Default: 0
# Type: int
set sv_pureLevel 0
# Used to prevent users from routing NETWORK_PLAY_SOUND_EVENT through the server, which is commonly used by malicious actors. This is set to true by default (allow routing)
# Default: true
# Type: boolean
set sv_enableNetworkedSounds true
# Enabling it (by setting it to true), will allow users to route REQUEST_PHONE_EXPLOSION_EVENT through the server. The main drawback behind enabling this, is that it can also be used by malicious actors.
# Default: false
# Type: boolean
set sv_enablePhoneExplosions false
# A boolean console variable introduced in server version 8540 that can be used to prevent users from routing SCRIPT_ENTITY_STATE_CHANGE_EVENT through the server, which is commonly used by malicious actors.
# Default: true
# Type: boolean
set sv_enableNetworkedScriptEntityStates true
# Any profile settings can be enforced by the server by using setr to replicate it to the client.
# All possible settings can be found in your own FiveM installation at "C:\Users\user\AppData\Roaming\CitizenFX\fivem.cfg"
# The following are a few examples, but the possibilities are not limited to what is shown here.
setr profile_fpsCombatroll 0 # 0: Forces the player to go in third person when combat rolling while in first person 1: leaves them in first person
setr profile_fpsFieldOfView 30 # Puts the FOV to 30 when in first person
setr profile_skfx 1 # 0: disables kill screen effects 1: enables them
# This will set the HTTP protocol version to 2.0 instead of 1.1. As of writing this is still experimental and may causes crashes.
# https://www.cloudflare.com/learning/performance/http2-vs-http1.1/ & https://github.com/citizenfx/fivem/blob/2632c6dd1a417d29cbf1e228513be15017fa29b5/code/components/citizen-server-net/src/HttpServerManager.cpp#L95
# Default: false
# Type: boolean
set sv_netHttp2 false
# The following convars all have something to do with the *_LATENT_* natives. These natives were never recommended to be used and were flawed under the hood. These convars should fix that.
# Default: true
# Type: boolean
setr sv_enableNetEventReassembly true
# If the above is set to true, you can use one of these 2 convars to set the amount of pending events to be reassembled.
# Default: 100
# Type: int
setr sv_netEventReassemblyMaxPendingEvents 100 # This can be anything from 0 to 254
# Default: false
# Type: boolean
# setr sv_netEventReassemblyUnlimitedPendingEvents false # Allows for unlimited pending events. Disable the above convar if you want to use this one.
# Turns on certain restrictions regarding entity creation. This will apply to the whole server. (click on the native link below to see the possible options)
# See the native alternative to apply rules to specific buckets. https://docs.fivem.net/natives/?_0xA0F2201F, also see qbx:bucketlockdownmode
# Default: "inactive"
# Type: string
set sv_entityLockdown "inactive"