-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.lua
More file actions
106 lines (98 loc) · 3.68 KB
/
config.lua
File metadata and controls
106 lines (98 loc) · 3.68 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
return {
---@type number Default number of options shown per page (default: 3)
itemsPerPage = 3,
---@type table[] Entity configurations for dialog NPCs
entities = {
--[[
{
model = 'csb_mweather',
coords = vector4(195.17, -933.77, 29.69, 144.04),
scenario = 'WORLD_HUMAN_STAND_IMPATIENT',
spawnDistance = 50.0,
invincible = true,
freeze = true,
dialog = {
targetIcon = 'fas fa-comments',
targetLabel = 'Talk to Marcus',
targetDistance = 2.5,
name = 'Marcus Webb',
role = 'FIXER',
roleColor = '#f59e0b',
description = "You look like someone who gets things done.",
options = {
{
id = 'option1',
label = 'First Option',
icon = 'briefcase',
description = 'Description of the first option.',
serverEvent = { 'myResource:option1', 'arg1', 'arg2' },
},
{
id = 'option2',
label = 'Second Option',
icon = 'package',
description = 'Description of the second option.',
clientEvent = 'myResource:option2',
},
{
id = 'submenu',
label = 'More Options',
icon = 'list',
description = 'View additional options.',
menu = {
description = 'Choose an option:',
options = {
{
id = 'sub1',
label = 'Sub Option 1',
icon = 'circle',
serverEvent = 'myResource:subOption1',
},
{
id = 'sub2',
label = 'Sub Option 2',
icon = 'square',
serverEvent = 'myResource:subOption2',
},
},
},
},
},
},
},
]]
},
---@type table[] Model configurations for dialog interactions
models = {
--[[
{
model = 'cs_bankman',
dialog = {
targetIcon = 'fas fa-comments',
targetLabel = 'Speak',
targetDistance = 2.0,
name = 'Bank Teller',
role = 'EMPLOYEE',
roleColor = '#3b82f6',
description = "Welcome to the bank. How may I assist you?",
options = {
{
id = 'deposit',
label = 'Deposit',
icon = 'arrow-down-to-line',
description = 'Deposit money into your account.',
clientEvent = 'bank:deposit',
},
{
id = 'withdraw',
label = 'Withdraw',
icon = 'arrow-up-from-line',
description = 'Withdraw money from your account.',
clientEvent = 'bank:withdraw',
},
},
},
},
]]
},
}