-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
227 lines (207 loc) · 8.73 KB
/
config.lua
File metadata and controls
227 lines (207 loc) · 8.73 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
Config = {
menuPos = {x = 1450, y = 100},
useKeyBind = false,
menuKey = 'F3', -- only works if userKeyBind is true
menuCommand = "donatormenu", -- only works if userKeyBind is false
useMenuTitle = false, -- i recommend having off if ur using a menuTexture
menuTitle = "~p~Donator ~y~Menu", -- only works if useMenuTitle is true
useMenuDescription = true,
menuDescription = "Welcome to the Donator Menu", -- only works if useMenuDescription is true
useImageBanner = true,
AddonMenuBannerImage = 'https://files.catbox.moe/an1x9e.png',
}
--[[
Configuration for the Donator Menu
----------------------------------
How to Configure:
- Each menu is defined as a table within the Config.menu table.
- 'type': This should be "submenu" for menu sections and "item" for individual items.
- 'text': The display name of the submenu.
- 'ace': (Optional) Permission required to access the submenu if not provided anyone can access it.
- 'description': A brief description of the submenu.
- 'lockedText': The message shown if the user doesn't have access.
- 'items': A list of items available in the submenu.
- 'pack': the Pack type can only be used on type 'item' all pack types here: 'car', 'weapon', 'ped'
Example:
{
type = "submenu",
text = "Example Menu",
ace = "example.access",
description = "Example description",
lockedText = "~r~Access denied",
items = {
{ type = "item", pack = 'car', text = "Example Item", description = "Example description", spawncode = "example_spawn" },
}
}
Example of Double Nested:
{
type = "submenu",
text = "Example Menu",
ace = "example.access",
description = "Example description",
lockedText = "~r~Access denied",
items = {
{
type = "submenu",
text = "Example Menu",
ace = "example.access",
description = "Example description",
lockedText = "~r~Access denied",
items = {
{ type = "item", pack = 'car', text = "Example Item", description = "Example description", spawncode = "example_spawn" },
}
}
}
}
]]
Config.menu = {
{
type = "submenu",
text = "Police Packs",
ace = "police.maverick",
description = "Police Packs",
lockedText = "~r~To unlock this menu, you need to be a Donator",
items = {
{ type = "item", pack = "car", text = "Police Maverick", description = "Police Maverick", spawncode = "police" },
{ type = "item", pack = "car", text = "Police Buffalo", description = "Police Buffalo", spawncode = "police1" },
{ type = "item", pack = "car", text = "Police Interceptor", description = "Police Interceptor", spawncode = "police2" },
}
},
{
type = "submenu",
text = "Ambulance Cars",
ace = "ambulance.maverick",
description = "Ambulance Cars",
lockedText = "~r~To unlock this menu, you need to be a Donator",
items = {
{ type = "item", pack = "car", text = "Ambulance Maverick", description = "Ambulance Maverick", spawncode = "ambulance" },
{ type = "item", pack = "car", text = "Ambulance Buffalo", description = "Ambulance Buffalo", spawncode = "ambulance1" },
}
},
{
type = "submenu",
text = "Free Cars",
description = "Free Cars",
items = {
{ type = "item", pack = "car", text = "Compact Car", description = "Compact Car", spawncode = "blista" },
{ type = "item", pack = "car", text = "SUV", description = "SUV", spawncode = "baller" },
{ type = "item", pack = "car", text = "Motorcycle", description = "Motorcycle", spawncode = "bati" },
{ type = "item", pack = "car", text = "Off-road", description = "Off-road", spawncode = "rebel" },
}
},
-- nested example
{
type = "submenu",
text = "Example Menu",
ace = "example.access",
description = "Example description",
lockedText = "~r~Access denied",
items = {
{
type = "submenu",
text = "Example Menu 1",
ace = "example.access",
description = "Example description",
lockedText = "~r~Access denied",
items = {
{ type = "item", pack = "car", text = "Example Item", description = "Example description", spawncode = "adder" },
}
},
{
type = "submenu",
text = "Example Menu 2",
ace = "example.access",
description = "Example description",
lockedText = "~r~Access denied",
items = {
{ type = "item", pack = "car", text = "Example Item", description = "Example description", spawncode = "adder" },
}
}
}
},
{
type = "submenu",
text = "Weapon Packs",
ace = "weapon.access",
description = "Weapon Packs",
lockedText = "~r~Access denied",
items = {
{ type = "item", pack = "weapon", text = "Pistol", description = "Pistol", spawncode = "weapon_pistol" },
{ type = "item", pack = "weapon", text = "Carbine", description = "Carbine", spawncode = "weapon_carbinerifle" },
}
},
{
type = "submenu",
text = "Peds",
description = "Peds",
ace = "ped.access",
lockedText = "~r~Access denied",
items = {
{ type = "item", pack = "ped", text = "Ped 1", description = "Ped 1", spawncode = "ped1" },
{ type = "item", pack = "ped", text = "Ped 2", description = "Ped 2", spawncode = "ped2" },
}
},
-- Nested Weapon Example
{
type = "submenu",
text = "Special Weapons",
ace = "weapon.special",
description = "Special Weapon Packs",
lockedText = "~r~Access denied",
items = {
{
type = "submenu",
text = "Heavy Weapons",
ace = "weapon.heavy",
description = "Heavy Weapons Pack",
lockedText = "~r~Access denied",
items = {
{ type = "item", pack = "weapon", text = "RPG", description = "Rocket Launcher", spawncode = "weapon_rpg" },
{ type = "item", pack = "weapon", text = "Minigun", description = "Minigun", spawncode = "weapon_minigun" },
}
},
{
type = "submenu",
text = "Sniper Rifles",
ace = "weapon.sniper",
description = "Sniper Rifles Pack",
lockedText = "~r~Access denied",
items = {
{ type = "item", pack = "weapon", text = "Heavy Sniper", description = "Heavy Sniper", spawncode = "weapon_heavysniper" },
{ type = "item", pack = "weapon", text = "Marksman Rifle", description = "Marksman Rifle", spawncode = "weapon_marksmanrifle" },
}
}
}
},
{
type = "submenu",
text = "Special Peds",
ace = "ped.special",
description = "Special Character Packs",
lockedText = "~r~Access denied",
items = {
{
type = "submenu",
text = "Police Peds",
ace = "ped.police",
description = "Police Character Pack",
lockedText = "~r~Access denied",
items = {
{ type = "item", pack = "ped", text = "SWAT", description = "SWAT Officer", spawncode = "s_m_y_swat_01" },
{ type = "item", pack = "ped", text = "Highway Patrol", description = "Highway Patrol Officer", spawncode = "s_m_y_hwaycop_01" },
}
},
{
type = "submenu",
text = "Gang Peds",
ace = "ped.gang",
description = "Gang Character Pack",
lockedText = "~r~Access denied",
items = {
{ type = "item", pack = "ped", text = "Ballas", description = "Ballas Gang Member", spawncode = "g_m_y_ballasout_01" },
{ type = "item", pack = "ped", text = "Lost MC", description = "Lost MC Member", spawncode = "g_m_y_lost_01" },
}
}
}
}
}