Repository navigation
Expand file tree
/
Copy pathconfig.lua
More file actions
87 lines (79 loc) · 2.42 KB
/
Copy pathconfig.lua
File metadata and controls
87 lines (79 loc) · 2.42 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
ENV = {}
-- GlobalState is an easy way to share with the client
GlobalState['hydrus:lang'] = 'en'
ENV.debug = false
ENV.token = 'insert-your-token-here'
-- Be careful when adding more workers, your commands must support concurrency and race condition
-- By default, the script handles race conditions just fine
ENV.workers = 4
-- D = Digit (0-9)
-- L = Letter (A-Z)
ENV.plate_format = 'DDLLLDDD'
-- Loads the intelisense from the github using load()
ENV.enhanced_intelisense = true
ENV.products = {}
ENV.testdrive = true
-- Delete or comment this to disable the chat broadcast.
ENV.chat_styles = {
'padding: 10px',
'margin: 5px 0',
'background-image: linear-gradient(to right, #b752ff 3%, #b752ff19 95%)',
'border-radius: 5px',
'color: snow',
'display: flex',
'align-items:d center',
'justify-content: center',
'font-weight: bold',
}
-- Styles for the /vip command
ENV.vip_styles = ENV.chat_styles
ENV.vip_command = 'vip'
AddEventHandler('hydrus:products-ready', function(scope)
scope.addHomeProduct({
name = 'Temporary Home',
credit = 'temporary_home',
-- image = 'https://i.imgur.com/SMxEwXT.png', (Default)
homes = 'LX:1-70,FH:1-100',
days = 30,
})
scope.addHomeProduct({
name = 'Permanent Home',
credit = 'permanent_home',
-- image = 'https://i.imgur.com/SMxEwXT.png', (Default)
homes = 'LX:1-70,FH:1-100,Middle:1-100-3',
})
scope.addVehicleProduct({
name = 'Temporary Vehicle',
credit = 'temporary_vehicle',
-- image = 'https://i.imgur.com/samafbT.png', (Default)
days = 30,
vehicles = {
['hakuchou'] = 'Hakuchou'
}
})
scope.addVehicleProduct({
name = 'Permanent Vehicle',
credit = 'permanent_vehicle',
-- image = 'https://i.imgur.com/samafbT.png', (Default)
vehicles = {
['hakuchou'] = 'Hakuchou'
}
})
-- Custom product
table.insert(ENV.products, {
name = 'Change phone number',
consume = { 'phone_number', 1 },
image = '',
form = {
{
label = _('insert.phone'),
placeholder = '000-000',
name = 'phone',
pattern = '000-000'
}
},
-- Look at server/ext/products.lua for the reference
is_allowed = phone_is_allowed,
execute = phone_execute
})
end)