forked from EnosInWork/Enos-Base-V5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.cfg
111 lines (80 loc) · 3.22 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
isaper# Only change the IP if you're using a server with multiple network interfaces, otherwise change the port only.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
# database
set es_enableCustomData 1
set mysql_connection_string "mysql://root@localhost/essentialmode?charset=utf8mb4"
set mysql_slow_query_warning 5000
sv_scriptHookAllowed 0
sv_endpointprivacy true
set es_enableCustomData 1
set onesync_legacy true
#-----ONESYNC----#
#set onesync_distanceCullVehicles true #Cause des crash pour le moment + Cause des joueurs invisible
set onesync_forceMigration true
set onesync_workaround763185 true
######################################################################################################
stop webadmin
stop monitor
##### LIAISON BDD #####
ensure mysql-async
ensure fxmigrant
##### FiveM######
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure fivem
ensure baseevents
exec resources.cfg
########################################################################################################################
sv_endpointprivacy true
sets onesync legacy
set steam_webApiKey
set sv_licenseKey
add_principal identifier.steam:110000112a69b9e group.superadmin
add_ace resource.essentialmode command.sets allow
add_ace group.admin command allow
add_ace group.admin command.quit deny
add_ace resource.essentialmode command.add_ace allow
add_ace resource.essentialmode command.add_principal allow
# Uncomment this and set a password to enable RCON. Make sure to change the password - it should look like rcon_password "YOURPASSWORD"
#rcon_password ""
# A comma-separated list of tags for your server.
# For example:
# - sets tags "drifting, cars, racing"
# Or:
# - sets tags "roleplay, military, tanks"
sets tags "default"
# A valid locale identifier for your server's primary language.
# For example "en-US", "fr-CA", "nl-NL", "de-DE", "en-GB", "pt-BR"
sets locale "root-AQ"
# please DO replace root-AQ on the line ABOVE with a real language! :)
# Set an optional server info and connecting banner image url.
# Size doesn't matter, any banner sized image will be fine.
#sets banner_detail "https://url.to/image.png"
#sets banner_connecting "https://url.to/image.png"
# Set your server's hostname
sv_hostname "Enos Base V5"
# Nested configs!
#exec server_internal.cfg
# Loading a server icon (96x96 PNG file)
#load_server_icon myLogo.png
# convars which can be used in scripts
set temp_convar "hey world!"
# Remove the `#` from the below line if you do not want your server to be listed in the server browser.
# Do not edit it if you *do* want your server listed.
#sv_master1 ""
# Add system admins
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
add_principal identifier.fivem:1 group.admin # add the admin to the group
# enable OneSync (required for server-side state awareness)
set onesync on
# Server player slot limit (see https://fivem.net/server-hosting for limits)
sv_maxclients 64
# Steam Web API key, if you want to use Steam authentication (https://steamcommunity.com/dev/apikey)
# -> replace "" with the key
set steam_webApiKey "REMPLACE"
# License key for your server (https://keymaster.fivem.net)
sv_licenseKey REMPLACE