-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
195 lines (180 loc) · 7.51 KB
/
Copy pathconfig.lua
File metadata and controls
195 lines (180 loc) · 7.51 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
--[[
Donator Menu Configuration
--------------------------
Menu (display)
- position: { x, y } screen position
- title: Menu title text, or false to hide
- subtitle: Menu subtitle text, or false to hide
- banner: Banner image URL, or false to hide
Open (how players open the menu)
- type: "command" or "keybind"
- command: Chat command name (when type = "command")
- key: Key name (when type = "keybind")
Messages (defaults for locked menu entries)
- locked: Shown when a permission-locked entry is clicked
Entries (menu content)
Submenu:
- label, description
- permission: (optional) ACE permission required
- locked: (optional) Override for locked message
- items: Child entries
Item:
- label, description
- action: "vehicle", "weapon", or "ped"
- model: Spawn code / weapon name / ped model
]]
Config = {
Menu = {
position = { x = 1450, y = 100 },
title = false,
subtitle = "Welcome to the Donator Menu",
banner = "https://files.catbox.moe/an1x9e.png",
},
Open = {
type = "command",
command = "donatormenu",
key = "F3",
},
Notify = {
Messages = {
['failed:load:model'] = "~r~[ERROR]~w~ Failed to load vehicle: %s",
['success:load:model'] = "~g~[SUCCESS]~w~ Successfully spawned vehicle"
},
func = function (message)
SetNotificationTextEntry("STRING")
AddTextComponentString(message)
DrawNotification(false, false)
end,
},
Messages = {
locked = "~r~Access denied",
},
Entries = {
-- Vehicles
{
label = "Police Packs",
description = "Police Packs",
permission = "police.maverick",
locked = "~r~To unlock this menu, you need to be a Donator",
items = {
{ label = "Police Maverick", description = "Police Maverick", action = "vehicle", model = "police" },
{ label = "Police Buffalo", description = "Police Buffalo", action = "vehicle", model = "police1" },
{ label = "Police Interceptor", description = "Police Interceptor", action = "vehicle", model = "police2" },
},
},
{
label = "Ambulance Cars",
description = "Ambulance Cars",
permission = "ambulance.maverick",
locked = "~r~To unlock this menu, you need to be a Donator",
items = {
{ label = "Ambulance Maverick", description = "Ambulance Maverick", action = "vehicle", model = "ambulance" },
{ label = "Ambulance Buffalo", description = "Ambulance Buffalo", action = "vehicle", model = "ambulance1" },
},
},
{
label = "Free Cars",
description = "Free Cars",
items = {
{ label = "Compact Car", description = "Compact Car", action = "vehicle", model = "blista" },
{ label = "SUV", description = "SUV", action = "vehicle", model = "baller" },
{ label = "Motorcycle", description = "Motorcycle", action = "vehicle", model = "bati" },
{ label = "Off-road", description = "Off-road", action = "vehicle", model = "rebel" },
},
},
-- Weapons
{
label = "Weapon Packs",
description = "Weapon Packs",
permission = "weapon.access",
items = {
{ label = "Pistol", description = "Pistol", action = "weapon", model = "weapon_pistol" },
{ label = "Carbine", description = "Carbine", action = "weapon", model = "weapon_carbinerifle" },
},
},
{
label = "Special Weapons",
description = "Special Weapon Packs",
permission = "weapon.special",
items = {
{
label = "Heavy Weapons",
description = "Heavy Weapons Pack",
permission = "weapon.heavy",
items = {
{ label = "RPG", description = "Rocket Launcher", action = "weapon", model = "weapon_rpg" },
{ label = "Minigun", description = "Minigun", action = "weapon", model = "weapon_minigun" },
},
},
{
label = "Sniper Rifles",
description = "Sniper Rifles Pack",
permission = "weapon.sniper",
items = {
{ label = "Heavy Sniper", description = "Heavy Sniper", action = "weapon", model = "weapon_heavysniper" },
{ label = "Marksman Rifle", description = "Marksman Rifle", action = "weapon", model = "weapon_marksmanrifle" },
},
},
},
},
-- Peds
{
label = "Peds",
description = "Peds",
permission = "ped.access",
items = {
{ label = "Ped 1", description = "Ped 1", action = "ped", model = "ped1" },
{ label = "Ped 2", description = "Ped 2", action = "ped", model = "ped2" },
},
},
{
label = "Special Peds",
description = "Special Character Packs",
permission = "ped.special",
items = {
{
label = "Police Peds",
description = "Police Character Pack",
permission = "ped.police",
items = {
{ label = "SWAT", description = "SWAT Officer", action = "ped", model = "s_m_y_swat_01" },
{ label = "Highway Patrol", description = "Highway Patrol Officer", action = "ped", model = "s_m_y_hwaycop_01" },
},
},
{
label = "Gang Peds",
description = "Gang Character Pack",
permission = "ped.gang",
items = {
{ label = "Ballas", description = "Ballas Gang Member", action = "ped", model = "g_m_y_ballasout_01" },
{ label = "Lost MC", description = "Lost MC Member", action = "ped", model = "g_m_y_lost_01" },
},
},
},
},
-- Examples (nested submenus)
{
label = "Example Menu",
description = "Example description",
permission = "example.access",
items = {
{
label = "Example Menu 1",
description = "Example description",
permission = "example.access",
items = {
{ label = "Example Item", description = "Example description", action = "vehicle", model = "adder" },
},
},
{
label = "Example Menu 2",
description = "Example description",
permission = "example.access",
items = {
{ label = "Example Item", description = "Example description", action = "vehicle", model = "adder" },
},
},
},
},
},
}