-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.lua
298 lines (291 loc) · 8.86 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
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
Config = {}
Config.CopCallCooldown = 60 -- Minimum seconds between cop calls for drug sales in server
Config.NpcRenderDistance = 60 -- Render distance for NPCs (if NPC enabled for any location)
--[[
For each Config.SellLocations[x]:
- active: If the sell location is active
- Set to false to disable selling at this location (blip and marker, if enabled, will not appear on map or to players at all)
- policeAlertChance: Percent chance police are alerted of selling
- policeRequired: Amount of online police required to sell
- notificationsEnabled: If notifications regarding selling are enabled
- itemNotificationsEnabled: If notifications regarding items being removed from inventory are enabled
- type: How location is approached by player to sell
- Options:
- 'walkup'
- Player can sell if they walk up to coords
- 'driveup'
- Player can sell if they drive up to coords
- 'any'
- Player can sell if they walk or drive up to coords
- 'target'
- Player can sell if they target at coords
- coords: Coordinates of selling point
- blip:
- enabled: If blip is enabled
- label: Blip label
- color: Blip color
- sprite: Blip sprite
- scale: Blip scale
- display: Blip display
- shortRange: If blip is short range
- marker:
- enabled: If marker is enabled
- type: Marker type
- scaleX: Marker scale on X axis
- scaleY: Marker scale on Y axis
- scaleZ: Marker scale on Z axis
- red: Marker red component
- green: Marker green component
- blue: Marker blue component
- alpha: Marker alpha component
- bob: If marker bobs up and down
- faceCamera: If marker constantly faces camera
- npc:
- enabled: If NPC is enabled
- ped: NPC ped model
- heading: NPC ped heading
- scenario: NPC ped scenario
- money_reward_type: Name of money type to reward
- sellAll: If all sellable items are sold at once, otherwise just the first sellable item
- sellable_items:
- 'itemName': Name of item
- sell_quantity: Amount to sell in increments of
- money_amount: Amount of money to reward per sell_quantity
- item_rewards:
- ['itemName'] (name of item) = itemAmount (amount of item to reward per sell_quantity)
- Example:
- ['sandwich'] = 2,
['joint'] = math.random(1, 2)
]]
Config.SellLocations = {
[1] = {
active = true,
policeAlertChance = 15,
policeRequired = 2,
notificationsEnabled = false,
itemNotificationsEnabled = true,
type = 'walkup',
coords = vector3(-352.83, 6231.16, 31.49),
blip = {
enabled = false,
label = 'Weed Selling',
color = 0,
sprite = 51,
scale = 0.6,
display = 4,
shortRange = true
},
marker = {
enabled = false,
type = 2,
scaleX = 0.2,
scaleY = 0.2,
scaleZ = 0.1,
red = 109,
green = 255,
blue = 0,
alpha = 0.64,
bob = false,
faceCamera = false
},
npc = {
enabled = false,
ped = 's_m_y_xmech_02_mp',
heading = 135.93,
scenario = 'WORLD_HUMAN_AA_SMOKE',
},
money_reward_type = 'cash',
sellAll = true,
sellable_items = {
['weed_white-widow'] = {
sell_quantity = 5,
money_amount = math.random(75, 120),
item_rewards = {
['joint'] = math.random(1, 2)
}
},
['weed_skunk'] = {
sell_quantity = 5,
money_amount = math.random(75, 120),
item_rewards = {
['joint'] = math.random(1, 2)
}
},
['weed_purple-haze'] = {
sell_quantity = 5,
money_amount = math.random(75, 120),
item_rewards = {
['joint'] = math.random(1, 2)
}
},
['weed_og-kush'] = {
sell_quantity = 5,
money_amount = math.random(75, 120),
item_rewards = {
['joint'] = math.random(1, 2)
}
},
['weed_amnesia'] = {
sell_quantity = 5,
money_amount = math.random(75, 120),
item_rewards = {
['joint'] = math.random(1, 2),
}
},
['weed_brick'] = {
sell_quantity = 10,
money_amount = math.random(2000, 3000),
item_rewards = {
['joint'] = math.random(1, 8),
}
}
}
},
[2] = {
active = true,
policeAlertChance = 15,
policeRequired = 2,
notificationsEnabled = false,
itemNotificationsEnabled = true,
type = 'walkup',
coords = vector3(1748.58, 3706.22, 34.2),
blip = {
enabled = false,
label = 'Meth Selling',
color = 0,
sprite = 51,
scale = 0.6,
display = 4,
shortRange = true
},
marker = {
enabled = false,
type = 2,
scaleX = 0.2,
scaleY = 0.2,
scaleZ = 0.1,
red = 109,
green = 255,
blue = 0,
alpha = 0.64,
bob = false,
faceCamera = false
},
npc = {
enabled = false,
ped = 's_m_y_xmech_02_mp',
heading = 286.2,
scenario = 'WORLD_HUMAN_AA_SMOKE',
},
money_reward_type = 'cash',
sellAll = true,
sellable_items = {
['meth'] = {
sell_quantity = 5,
money_amount = math.random(75, 120),
item_rewards = {
}
}
}
},
[3] = {
active = true,
policeAlertChance = 15,
policeRequired = 2,
notificationsEnabled = false,
itemNotificationsEnabled = true,
type = 'walkup',
coords = vector3(906.92, -1932.72, 30.62),
blip = {
enabled = false,
label = 'Crack Selling',
color = 0,
sprite = 51,
scale = 0.6,
display = 4,
shortRange = true
},
marker = {
enabled = false,
type = 2,
scaleX = 0.2,
scaleY = 0.2,
scaleZ = 0.1,
red = 109,
green = 255,
blue = 0,
alpha = 0.64,
bob = false,
faceCamera = false
},
npc = {
enabled = false,
ped = 's_m_y_xmech_02_mp',
heading = 129.33,
scenario = 'WORLD_HUMAN_AA_SMOKE',
},
money_reward_type = 'cash',
sellAll = true,
sellable_items = {
['crack_baggy'] = {
sell_quantity = 5,
money_amount = math.random(90, 170),
item_rewards = {
}
}
}
},
[4] = {
active = true,
policeAlertChance = 15,
policeRequired = 2,
notificationsEnabled = false,
itemNotificationsEnabled = true,
type = 'walkup',
coords = vector3(1144.53, -299.44, 68.81),
blip = {
enabled = false,
label = 'Coke Selling',
color = 0,
sprite = 51,
scale = 0.6,
display = 4,
shortRange = true
},
marker = {
enabled = false,
type = 2,
scaleX = 0.2,
scaleY = 0.2,
scaleZ = 0.1,
red = 109,
green = 255,
blue = 0,
alpha = 0.64,
bob = false,
faceCamera = false
},
npc = {
enabled = false,
ped = 's_m_y_xmech_02_mp',
heading = 97.09,
scenario = 'WORLD_HUMAN_AA_SMOKE',
},
money_reward_type = 'cash',
sellAll = true,
sellable_items = {
['cokebaggy'] = {
sell_quantity = 5,
money_amount = math.random(90, 185),
item_rewards = {
}
},
['coke_brick'] = {
sell_quantity = 10,
money_amount = math.random(8500, 10000),
item_rewards = {
}
}
}
}
}