Repository navigation
Expand file tree
/
Copy pathconfig.lua
More file actions
153 lines (142 loc) · 6.28 KB
/
Copy pathconfig.lua
File metadata and controls
153 lines (142 loc) · 6.28 KB
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
Config = {}
----------------------------------------------------------------
Config.Debug = false
Config.VersionChecker = true
----------------------------------------------------------------
-- Supported Frameworks: AUTO, ESX, QBCore, Qbox, STANDALONE
-- AUTO will search for your framework (qbx_core > es_extended > qb-core)
Config.Framework = 'AUTO'
-- Supported Inventories: AUTO, default, custom, ox_inventory, jaksam_inventory, core_inventory
-- AUTO will search for your inventory (ox_inventory > core_inventory > jaksam_inventory > default)
-- 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: inventories/custom.lua
Config.Inventory = 'AUTO'
----------------------------------------------------------------
Config.showCoords = {
enable = true,
command = 'coords',
groups = {'superadmin', 'god', 'admin'}
}
Config.copyCoords = {
enable = true,
command = 'copyCoords',
groups = {'superadmin', 'god', '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 = '#f0ede8'},
['info'] = {icon = 'fa-solid fa-circle-info', color = '#75d6ff'},
['success'] = {icon = 'fa-solid fa-shield-check', color = '#00e676'},
['warning'] = {icon = 'fa-solid fa-triangle-exclamation', color = '#facc15'},
['error'] = {icon = 'fa-solid fa-circle-exclamation', color = '#f43f5e'},
}
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 = "#00e676" -- Default Color for ProgressBar (MSK Grün)
Config.TextUIColor = "#00e676" -- Default Color for TextUI (MSK Grün)
----------------------------------------------------------------
-- Radial menu. Scripts add their entries with MSK.Radial.Add
-- Players can change the key in the FiveM key bindings (Settings -> Key Bindings -> FiveM)
Config.Radial = {
enable = true,
key = 'Z', -- Default key
hold = true, -- true = open while the key is held, false = press to open and close
}
----------------------------------------------------------------
-- Settings menu for players: language, notification position and sound
Config.Settings = {
enable = true,
command = 'mskSettings',
-- Languages a player can choose. The empty value follows the server language (convar msk:locale)
locales = {
{value = '', label = 'Server language'},
{value = 'en', label = 'English'},
{value = 'de', label = 'Deutsch'},
},
}
----------------------------------------------------------------
-- In-game zone creator, copies the finished MSK.Zones code to the clipboard
-- Usage: /zoneCreator box | sphere | poly
Config.ZoneCreator = {
enable = true,
command = 'zoneCreator',
groups = {'superadmin', 'god', 'admin'}
}
----------------------------------------------------------------
-- Show txAdmin messages as MSK notifications
-- txAdmin shows its own message too, see modules/TxAdmin/server.lua to hide it
Config.TxAdmin = {
announcements = false,
directMessages = false,
restartWarnings = false,
duration = 15000,
}
----------------------------------------------------------------
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,
text = "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"
},
discord = {
enable = false, -- Set true to enable DiscordLogs // Add Webhook Link in modules/DisconnectLogger/server.lua
color = "6205745", -- https://www.mathsisfun.com/hexadecimal-decimal-colors.html
botName = "MSK Scripts",
botAvatar = "https://i.imgur.com/PizJGsh.png",
title = "Player Disconnected",
text = "The player **%s** with the **ID %s** has left the server."
}
}
----------------------------------------------------------------
-- 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 modules/Ban/server.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', 'god', 'admin'},
ban = 'banPlayer',
unban = 'unbanPlayer'
}
}