-
Notifications
You must be signed in to change notification settings - Fork 1
/
server.cfg
49 lines (39 loc) · 1.53 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
# WANRING!!! To keep things organized you can start resources in resources.cfg instead of here!!
{{serverEndpoints}}
sv_maxclients {{maxClients}}
sv_licenseKey "{{svLicense}}"
set steam_webApiKey "none"
set mysql_connection_string "{{dbConnectionString}}" # https://overextended.dev/oxmysql
set sv_filterRequestControl 2 # https://docs.fivem.net/docs/server-manual/server-commands/#sv_filterrequestcontrol-mode
sv_enforceGameBuild 3095 # https://docs.fivem.net/docs/server-manual/server-commands/#sv_enforcegamebuild-build
sv_pureLevel 1 # https://docs.fivem.net/docs/server-manual/server-commands/#sv_purelevel-level
sv_scriptHookAllowed 0
sv_hostname "{{serverName}} built with {{recipeName}} by {{recipeAuthor}}!"
sets sv_projectName "[{{recipeName}}] {{serverName}}"
sets sv_projectDesc "{{recipeDescription}}"
sets tags "nd_core"
sets locale "en_US"
load_server_icon logo.png
add_ace resource.ox_lib command.add_ace allow
add_ace resource.ox_lib command.remove_ace allow
add_ace resource.ox_lib command.add_principal allow
add_ace resource.ox_lib command.remove_principal allow
## Add system admins
add_ace group.admin command allow # allow all commands
{{addPrincipalsMaster}}
## These resources will start by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
## Add system admins
add_ace group.admin command allow # allow all commands
{{addPrincipalsMaster}}
# Set npwd framework.
set npwd:framework ndcore
# execute other cfg.
exec ndcore.cfg
exec inventory.cfg
exec resources.cfg