-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathbase.lua
37 lines (26 loc) · 1.26 KB
/
base.lua
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
local cfg = {}
-- mysql credentials
cfg.db = {
driver = "ghmattimysql",
host = "127.0.0.1",
database = "vRP",
user = "vRP",
password = "password"
}
cfg.server_id = "main" -- identify the server (ex: in database)
cfg.save_interval = 60 -- seconds
cfg.whitelist = false -- enable/disable whitelist
-- delay the tunnel at loading (for weak connections)
cfg.load_duration = 30 -- seconds, player duration in loading mode at the first spawn
cfg.load_delay = 60 -- milliseconds, delay the tunnel communication when in loading mode
cfg.global_delay = 0 -- milliseconds, delay the tunnel communication when not in loading mode
cfg.ping_check_interval = 0 -- seconds, 0 to disable ping timeout
cfg.ping_timeout_misses = 10 -- number of ping miss required to reject a player
cfg.max_characters = 5 -- maximum number of characters per user
cfg.character_select_delay = 60 -- minimum number of seconds between character selects, at least 30 seconds is recommended
-- identify users only with steam or ros identifiers (solve same ip issue, recommended)
-- if enabled, steam auth should be forced in the FiveM server config
cfg.ignore_ip_identifier = true
cfg.lang = "en"
cfg.log_level = 0 -- maximum verbose level for logs, -1 may disable logs and 1000 may print all logs
return cfg