forked from qbcore-framework/qb-weapons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
192 lines (186 loc) · 6.53 KB
/
config.lua
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
Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] = 177,
["TAB"] = 37, ["Q"] = 44, ["W"] = 32, ["E"] = 38, ["R"] = 45, ["T"] = 245, ["Y"] = 246, ["U"] = 303, ["P"] = 199, ["["] = 39, ["]"] = 40, ["ENTER"] = 18,
["CAPS"] = 137, ["A"] = 34, ["S"] = 8, ["D"] = 9, ["F"] = 23, ["G"] = 47, ["H"] = 74, ["K"] = 311, ["L"] = 182,
["LEFTSHIFT"] = 21, ["Z"] = 20, ["X"] = 73, ["C"] = 26, ["V"] = 0, ["B"] = 29, ["N"] = 249, ["M"] = 244, [","] = 82, ["."] = 81,
["LEFTCTRL"] = 36, ["LEFTALT"] = 19, ["SPACE"] = 22, ["RIGHTCTRL"] = 70,
["HOME"] = 213, ["PAGEUP"] = 10, ["PAGEDOWN"] = 11, ["DELETE"] = 178,
["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173,
}
Config = Config or {}
Config.DurabilityBlockedWeapons = {
"weapon_pistol_mk2",
"weapon_pistol",
"weapon_stungun",
"weapon_pumpshotgun",
"weapon_smg",
"weapon_carbinerifle",
"weapon_nightstick",
"weapon_flashlight",
"weapon_unarmed",
}
Config.DurabilityMultiplier = {
["weapon_unarmed"] = 0.15,
["weapon_knife"] = 0.15,
["weapon_nightstick"] = 0.15,
["weapon_hammer"] = 0.15,
["weapon_bat"] = 0.15,
["weapon_golfclub"] = 0.15,
["weapon_crowbar"] = 0.15,
["weapon_pistol"] = 0.15,
["weapon_pistol_mk2"] = 0.15,
["weapon_combatpistol"] = 0.15,
["weapon_appistol"] = 0.15,
["weapon_pistol50"] = 0.15,
["weapon_microsmg"] = 0.15,
["weapon_smg"] = 0.15,
["weapon_assaultsmg"] = 0.15,
["weapon_assaultrifle"] = 0.15,
["weapon_carbinerifle"] = 0.15,
["weapon_advancedrifle"] = 0.15,
["weapon_mg"] = 0.15,
["weapon_combatmg"] = 0.15,
["weapon_pumpshotgun"] = 0.15,
["weapon_sawnoffshotgun"] = 0.15,
["weapon_assaultshotgun"] = 0.15,
["weapon_bullpupshotgun"] = 0.15,
["weapon_stungun"] = 0.15,
["weapon_sniperrifle"] = 0.15,
["weapon_heavysniper"] = 0.15,
["weapon_remotesniper"] = 0.15,
["weapon_grenadelauncher"] = 0.15,
["weapon_grenadelauncher_smoke"] = 0.15,
["weapon_rpg"] = 0.15,
["weapon_minigun"] = 0.15,
["weapon_grenade"] = 0.15,
["weapon_stickybomb"] = 0.15,
["weapon_smokegrenade"] = 0.15,
["weapon_bzgas"] = 0.15,
["weapon_molotov"] = 0.15,
["weapon_fireextinguisher"] = 0.15,
["weapon_petrolcan"] = 0.15,
["weapon_briefcase"] = 0.15,
["weapon_briefcase_02"] = 0.15,
["weapon_ball"] = 0.15,
["weapon_flare"] = 0.15,
["weapon_snspistol"] = 0.15,
["weapon_bottle"] = 0.15,
["weapon_gusenberg"] = 0.15,
["weapon_specialcarbine"] = 0.15,
["weapon_heavypistol"] = 0.15,
["weapon_bullpuprifle"] = 0.15,
["weapon_dagger"] = 0.15,
["weapon_vintagepistol"] = 0.15,
["weapon_firework"] = 0.15,
["weapon_musket"] = 0.15,
["weapon_heavyshotgun"] = 0.15,
["weapon_marksmanrifle"] = 0.15,
["weapon_hominglauncher"] = 0.15,
["weapon_proxmine"] = 0.15,
["weapon_snowball"] = 0.15,
["weapon_flaregun"] = 0.15,
["weapon_garbagebag"] = 0.15,
["weapon_handcuffs"] = 0.15,
["weapon_combatpdw"] = 0.15,
["weapon_marksmanpistol"] = 0.15,
["weapon_knuckle"] = 0.15,
["weapon_hatchet"] = 0.15,
["weapon_railgun"] = 0.15,
["weapon_machete"] = 0.15,
["weapon_machinepistol"] = 0.15,
["weapon_switchblade"] = 0.15,
["weapon_revolver"] = 0.15,
["weapon_dbshotgun"] = 0.15,
["weapon_compactrifle"] = 0.15,
["weapon_autoshotgun"] = 0.15,
["weapon_battleaxe"] = 0.15,
["weapon_compactlauncher"] = 0.15,
["weapon_minismg"] = 0.15,
["weapon_pipebomb"] = 0.15,
["weapon_poolcue"] = 0.15,
["weapon_wrench"] = 0.15,
["weapon_autoshotgun"] = 0.15,
["weapon_bread"] = 0.15,
}
Config.WeaponRepairPoints = {
[1] = {
coords = {x = 964.02, y = -1267.41, z = 34.97, h = 35.5, r = 1.0},
IsRepairing = false,
RepairingData = {},
}
}
Config.WeaponRepairCotsts = {
["pistol"] = 1000,
["smg"] = 3000,
["rifle"] = 5000,
}
Config.WeaponAttachments = {
["WEAPON_SNSPISTOL"] = {
["extendedclip"] = {
component = "COMPONENT_SNSPISTOL_CLIP_02",
label = "Extended Clip",
item = "pistol_extendedclip",
},
},
["WEAPON_VINTAGEPISTOL"] = {
["suppressor"] = {
component = "COMPONENT_AT_PI_SUPP",
label = "Demper",
item = "pistol_suppressor",
},
["extendedclip"] = {
component = "COMPONENT_VINTAGEPISTOL_CLIP_02",
label = "Extended Clip",
item = "pistol_extendedclip",
},
},
["WEAPON_PISTOL"] = {
["suppressor"] = {
component = "COMPONENT_AT_PI_SUPP_02",
label = "Demper",
item = "pistol_suppressor",
},
},
["WEAPON_MICROSMG"] = {
["suppressor"] = {
component = "COMPONENT_AT_AR_SUPP_02",
label = "Demper",
item = "smg_suppressor",
},
["extendedclip"] = {
component = "COMPONENT_MICROSMG_CLIP_02",
label = "Extended Clip",
item = "smg_extendedclip",
},
["flashlight"] = {
component = "COMPONENT_AT_PI_FLSH",
label = "Flashlight",
item = "smg_flashlight",
},
["scope"] = {
component = "COMPONENT_AT_SCOPE_MACRO",
label = "Scope",
item = "smg_scope",
},
},
["WEAPON_MINISMG"] = {
["extendedclip"] = {
component = "COMPONENT_MINISMG_CLIP_02",
label = "Extended Clip",
item = "smg_extendedclip",
},
},
["WEAPON_COMPACTRIFLE"] = {
["extendedclip"] = {
component = "COMPONENT_COMPACTRIFLE_CLIP_02",
label = "Extended Clip",
item = "rifle_extendedclip",
},
["drummag"] = {
component = "COMPONENT_COMPACTRIFLE_CLIP_03",
label = "Drum Mag",
item = "rifle_drummag",
},
},
}