-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
102 lines (93 loc) · 3.49 KB
/
Copy pathconfig.lua
File metadata and controls
102 lines (93 loc) · 3.49 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
Config = {}
----------------------------------------------------------------
Config.Locale = 'en'
Config.Debug = false
Config.VersionChecker = true
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
Config.Notification = function(source, message, typ)
if IsDuplicityVersion() then -- serverside
MSK.Notification(source, 'MSK Storage', message, typ, 5000)
else -- clientside
MSK.Notification('MSK Storage', message, typ, 5000)
end
end
----------------------------------------------------------------
Config.Hotkey = 38 -- default: 38 = E // Change the Key in translation.lua too
Config.npcVoice = {
enable = true, -- The NPC will say something to you
inRange = 5.0,
outRange = 5.0
}
Config.PayCron = 7 -- in days // After X days the amount will be removed from player
Config.MinBudget = 10000 -- Money that remains on the Bankaccount if Player can't pay
-- Configured Societies will get a percentage of the storage price
Config.Society = {
enable = false, -- Set true to activate this Feature // esx_addonaccount will be needed
societies = {
-- Example: ['society_jobname'] = percent // 0.01 is 1% // 0.1 is 10% // 1.0 is 100%
['society_police'] = 0.2,
}
}
----------------------------------------------------------------
-- Set to 'chezza_v3', 'chezza_v4', 'ox_inventory' or 'custom'
-- If set to 'custom' then go to integration folder and add your inventory
Config.Inventory = 'chezza_v3'
----------------------------------------------------------------
Config.defaultTextUI = true -- Set false if you want to use a custom textui
Config.openTextUI = function(coloredText, uncoloredText)
exports['okokTextUI']:Open(uncoloredText, 'darkblue', 'left')
end
Config.closeTextUI = function()
exports['okokTextUI']:Close()
end
----------------------------------------------------------------
Config.Storages = {
-- [id] must be a number, otherwise you'll break the script!
[1] = {
label = {'Warehouse', 'Tier 1'},
price = 5000,
weight = 1000,
slots = 10,
image = 'storage_1.png'
},
[2] = {
label = {'Warehouse', 'Tier 2'},
price = 15000,
weight = 5000,
slots = 15,
image = 'storage_2.png'
},
[3] = {
label = {'Warehouse', 'Tier 3'},
price = 45000,
weight = 10000,
slots = 20,
image = 'storage_3.png'
},
}
Config.Locations = {
-- Marker is only available if pedmodel.enable = false
['l1'] = {
title = 'Warehouse',
subtitle = 'Hafen',
storages = {1, 2, 3},
blip = {enable = true, label = 'Warehouse', id = 473, color = 2, scale = 0.8},
pedmodel = {enable = true, model = 'csb_trafficwarden', distance = 20.0},
marker = {enable = true, distance = 5.0, type = 27, size = {a = 1.0, b = 1.0, c = 1.0}, color = {a = 255, b = 255, c = 255}},
locations = {
vector4(141.82, -3097.87, 5.9, 4.26),
}
},
['l2'] = {
title = 'Warehouse',
subtitle = 'Harmony',
storages = {1, 2},
blip = {enable = true, label = 'Warehouse', id = 473, color = 2, scale = 0.8},
pedmodel = {enable = true, model = 'csb_trafficwarden', distance = 20.0},
marker = {enable = true, distance = 5.0, type = 27, size = {a = 1.0, b = 1.0, c = 1.0}, color = {a = 255, b = 255, c = 255}},
locations = {
vector4(585.81, 2782.25, 43.47, 0.0),
}
},
}