-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.lua
60 lines (56 loc) · 2.53 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
Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.Debug = false
Config.VersionChecker = true
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
Config.Notification = function(source, message, info)
if IsDuplicityVersion() then -- serverside
MSK.Notification(source, 'MSK JobGPS', message, info)
else -- clientside
MSK.Notification('MSK JobGPS', message, info)
end
end
----------------------------------------------------------------
Config.StayActivated = {
-- If set to true and someone deactivate the GPS then the Blip will be removed after X seconds.
-- If set to false and someone deactivated the GPS then the Blip will be removed immediately.
enable = true, -- Set to false to deactivated this feature completely
seconds = 60,
['stayOnDeactivate'] = false,
['stayOnLeaveServer'] = true,
['stayOnDeath'] = true,
['stayOnRemoveItem'] = true,
}
Config.GPS = {
item = 'tracker',
blip = {id = 1, color = 2, scale = 0.7, prefix = 'GPS'},
refresh = 2.5 -- in seconds // Refreshtime if player is not in OneSync distance
}
Config.Panicbutton = {
enable = true, -- Set false to deactivated this feature completely
item = {enable = false, item = 'panicbutton'}, -- You need that item in your inventory if set to true
hotkey = {enable = true, key = 'f9'}, -- Command has to be activated // RegisterKeyMapping (https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/)
blipColor = 1, -- This will change the Blipcolor of GPS Blip
notifyNearestPlayers = true,
}
----------------------------------------------------------------
Config.Commands = {
gps = {enable = true, command = 'toggleGPS'},
panicbutton = {enable = true, command = 'togglePanic'} -- If you set to false then the hotkey doesn't work
}
----------------------------------------------------------------
Config.allowedJobs = {
['police'] = {gps = true, panicbutton = true},
['ambulance'] = {gps = true, panicbutton = true},
['justice'] = {gps = true, panicbutton = true},
['doj'] = {gps = true, panicbutton = true},
['bloods'] = {gps = true, panicbutton = false},
['grove'] = {gps = true, panicbutton = false},
['vagos'] = {gps = true, panicbutton = false},
['crips'] = {gps = true, panicbutton = false},
['ballas'] = {gps = true, panicbutton = false},
['mg13'] = {gps = true, panicbutton = false},
['lm'] = {gps = true, panicbutton = false},
}