-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.lua
118 lines (108 loc) · 5.2 KB
/
config.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
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
Config = {}
----------------------------------------------------------------
Config.Debug = false
Config.VersionChecker = true
----------------------------------------------------------------
-- Supported Frameworks: AUTO, ESX, QBCore, STANDALONE
-- AUTO will search for your framework
Config.Framework = 'AUTO'
-- Supported Inventories: default, custom, ox_inventory, qs-inventory, core_inventory
-- For ESX Default Inventory or Chezza Inventory, set to 'default'
-- Set to 'custom' if you use another inventory and add your own functions
-- You can add your own inventory in: server/inventories/custom.lua
Config.Inventory = 'default'
----------------------------------------------------------------
Config.showCoords = {
enable = true,
command = 'coords',
groups = {'superadmin', 'admin'}
}
Config.copyCoords = {
enable = true,
command = 'copyCoords',
groups = {'superadmin', 'admin'}
}
----------------------------------------------------------------
-- Set to 'msk' for MSK UI Notification
-- Set to 'native' for FiveM Native Notification
-- Set to 'custom' for Config.customNotification()
-- Set to 'okok' for OKOK Notification
-- Set to 'qb-core' for QBCore Notification
-- Set to 'bulletin' for bulletin notification (https://github.com/Mobius1/bulletin)
Config.Notification = 'msk'
-- Only for MSK Notification
Config.NotifyTypes = {
-- https://fontawesome.com/icons
['general'] = {icon = 'fa-solid fa-circle-info', color = '#ffffff'},
['info'] = {icon = 'fa-solid fa-circle-info', color = '#75d6ff'},
['success'] = {icon = 'fa-solid fa-shield-check', color = '#76ee62'},
['warning'] = {icon = 'fa-solid fa-triangle-exclamation', color = '#ffcb11'},
['error'] = {icon = 'fa-solid fa-circle-exclamation', color = '#ff4a4a'},
}
Config.customNotification = function(title, message, typ, duration)
-- Set Config.Notification = 'custom'
-- Add your own clientside Notification here
end
----------------------------------------------------------------
-- Set to 'native' for FiveM Native AdvancedNotification
-- Set to 'custom' for Config.customAdvancedNotification()
-- Set to 'bulletin' for bulletin AdvancedNotification (https://github.com/Mobius1/bulletin)
Config.AdvancedNotification = 'native'
Config.customAdvancedNotification = function(text, title, subtitle, icon, flash, icontype)
-- Set Config.AdvancedNotification = 'custom'
-- Add your own clientside AdvancedNotification here
end
----------------------------------------------------------------
-- Set to 'msk' for MSK TextUI Notification
-- Set to 'native' for FiveM Native HelpNotification
-- Set to 'custom' for Config.customHelpNotification()
Config.HelpNotification = 'msk'
-- This will be called every frame -> Wait(0)
Config.customHelpNotification = function(text)
end
----------------------------------------------------------------
Config.ProgressColor = "#5eb131" -- Default Color for ProgressBar
Config.TextUIColor = "#5eb131" -- Default Color for TextUI
----------------------------------------------------------------
Config.LoggingTypes = {
['debug'] = '[^3DEBUG^0]',
['info'] = '[^4Info^0]',
['warn'] = '[^3Warning^0]^3',
['error'] = '[^1ERROR^0]^1',
}
----------------------------------------------------------------
-- If enabled it will display a 3D Text on the position the player disconnected
Config.DisconnectLogger = {
enable = false, -- Set to true if you want to use this Feature
console = {
enable = false,
-- German: "Der Spieler ^3%s^0 mit der ^3ID %s^0 hat den Server verlassen.\n^4Uhrzeit:^0 %s\n^4Grund:^0 %s\n^4Identifier:^0\n %s\n %s\n %s\n^4Koordinaten:^0 %s"
-- English: "The player ^3%s^0 with the ^3ID %s^0 has left the server.\n^4Time:^0 %s\n^4Reason:^0 %s\n^4Identifier:^0\n %s\n %s\n %s\n^4Coordinates:^0 %s"
text = "Der Spieler ^3%s^0 mit der ^3ID %s^0 hat den Server verlassen.\n^4Uhrzeit:^0 %s\n^4Grund:^0 %s\n^4Identifier:^0\n %s\n %s\n %s\n^4Koordinaten:^0 %s"
},
discord = {
enable = false, -- Set true to enable DiscordLogs // Add Webhook Link in server/functions/disconnectlogger.lua
color = "6205745", -- https://www.mathsisfun.com/hexadecimal-decimal-colors.html
botName = "MSK Scripts",
botAvatar = "https://i.imgur.com/PizJGsh.png",
title = "Player Disconnected",
-- German: "Der Spieler **%s** mit der **ID %s** hat den Server verlassen."
-- English: "The player **%s** with the **ID %s** has left the server."
text = "Der Spieler **%s** mit der **ID %s** hat den Server verlassen."
}
}
----------------------------------------------------------------
-- For more Information go to: https://docu.msk-scripts.de/msk-core/functions/server/ban-system
Config.BanSystem = {
enable = true, -- Set to true if you want to use this Feature
discordLog = false, -- Set true to enable DiscordLogs // Add Webhook Link in server/functions/bansystem.lua
botColor = "6205745", -- https://www.mathsisfun.com/hexadecimal-decimal-colors.html
botName = "MSK Scripts",
botAvatar = "https://i.imgur.com/PizJGsh.png",
commands = {
enable = true,
groups = {'superadmin', 'admin', 'god'},
ban = 'banPlayer',
unban = 'unbanPlayer'
}
}