· 5 years ago · Mar 13, 2020, 04:46 PM
1elegant_printers.config = {
2
3--[[
4
5 These are the default values that will be used for each printer.
6
7]]
8
9
10
11--[[
12
13 DarkRP custom entity values
14
15
16
17 You can also use the other values! https://wiki.darkrp.com/index.php/DarkRP:CustomEntityFields
18
19 as well as whatever custom fields your addons make use of.
20
21]]
22
23-- example:
24
25-- customCheck = function(ply) end,
26
27-- This will get run just like if you added the "spawn" field in DarkRP.createEntity!
28
29
30
31 PrintName = "Default Money Printer",
32
33-- The name of the money printer that will be displayed in messages and the F4 menu
34
35
36
37 price = 1500,
38
39-- The price of a default printer.
40
41
42
43 max = math.huge,
44
45-- By default, you can have any number of printers you want at once. (math.huge = BASICALLY INFINITE)
46
47-- If you set this to a number, you will be limited in the amount of printers you can simultaneously own!
48
49
50
51 GlobalMax = math.huge,
52
53-- Maximum amounts of printers you can have at once, regardless of their tier.
54
55
56
57 SeizeReward = 10000,
58
59-- The amount of money a cop will receive upon seizing a printer. (When attacked with a Stun Stick)
60
61
62
63--[[
64
65 The printer entity's values
66
67]]
68
69 PrintAmount = 3500,
70
71-- The amount of money printed per "ink usage".
72
73
74
75 PrintTime = 60 * 2,
76
77-- The amount of time in seconds it takes to print money. ((60 * 3) seconds = 3 minutes)
78
79
80
81 HeatupTime = 1000,
82
83-- The amount of time in seconds it takes the printer to heat up.
84
85-- Everytime the printer heats up, it will take one damage to durability. Once it reaches 0, it will explode!
86
87-- You can prevent this using High Quality Cooling.
88
89
90
91 MaxMoney = 1000000,
92
93-- The maximum amount of money the money printer can store until it stops printing.
94
95-- TIP: You can pass math.huge as a value to make it infinite.
96
97
98
99 InkSystem = true,
100
101-- If set to false, the printers will work without ink.
102
103
104
105 CoolingSystem = true,
106
107-- If set to false, the simple cooling system will be disabled.
108
109
110
111 MaxInk = 5,
112
113-- The default amount of times a printer can print money before you have to refill it.
114
115
116
117 InkRefill = 5,
118
119-- The amount of ink that will be refilled on usage of an ink cartridge.
120
121-- TIP: This value is also used to determine how many slots will be added on usage of an ink cartridge slot upgrade!
122
123
124
125 UpgradedMaxInk = 15,
126
127-- The maximum amount of ink a printer can store, with all slot upgrades.
128
129
130
131 LogoURL = "",
132
133-- An URL linking to the image that will get displayed on your printer's interface.
134
135-- Must be a direct link to the image, ending with .jpg or .png
136
137
138
139 GradientDirection = "right",
140
141-- The direction of the background gradient used on the printer.
142
143-- Possible values: "up", "down", "left", "right", "none"
144
145
146
147 Gradient1 = Color(66, 89, 255),
148
149-- Start color of the gradient (Pick RGB values using https://www.w3schools.com/colors/colors_picker.asp)
150
151-- If GradientDirection is set to "none", this will be the background of the printer's interface.
152
153
154
155 Gradient2 = Color(20, 184, 255),
156
157-- End color of the gradient
158
159-- Unused if GradientDirection is set to "none".
160
161
162
163 PrinterColor = Color(28, 31, 33),
164
165-- The printer's model's color on spawn.
166
167
168
169 InvertColors = false,
170
171-- For the printer's interface, do you want to switch white text for black text?
172
173-- Could improve readability depending on the gradient colors you chose.
174
175
176
177 MaxRenderDistance = 256,
178
179-- How far you have to be for the printer screen to stop rendering. Hammer units. Lowering this helps with performance.
180
181
182
183 AllowedVIPs = {
184
185 -- "vip",
186
187 },
188
189-- If this table exists and is not empty, players that do not have one of the specified usergroups will not be able to buy a printer.
190
191
192
193--[[
194
195 If ItemStore is installed...
196
197
198
199 https://www.gmodstore.com/scripts/view/15/itemstore-inventory-for-darkrp
200
201]]
202
203 ItemStore = true,
204
205-- If set to true, this will let you pick up the printers and its upgrades with it.
206
207
208
209--[[
210
211 If Vrondrakis's Level System is installed...
212
213
214
215 https://github.com/vrondakis/Leveling-System
216
217]]
218
219 VrondakisLevelSystem = true,
220
221-- If set to true, printers will give XP on money retrieval.
222
223 VrondakisLevelSystem_Multiplier = 0.25,
224
225-- The XP being given is the amount of money being retrieved multiplied by the above number.
226
227 VrondakisLevelSystem_MinLevel = 0,
228
229-- The minimum level required to spawn a printer.
230
231
232
233--[[
234
235 Using the same variable names as the ones above with different values, you can create customized printer tiers.
236
237 The values you pick for them will override the ones of the default printer, set above this comment.
238
239 You can add any number of tiers you want.
240
241 Tier names will show up in some places, make sure to capitalize them properly!
242
243
244
245 Keep in mind, ALL of the values above have an effect! Don't be afraid to try and mix every config option with another!
246
247]]
248
249 Tiers = {
250
251 Sapphire = {
252
253 PrintName = "Sapphire Money Printer",
254
255 price = 10000,
256
257 cmd = "buyprinter_sapphire",
258
259
260
261 PrintAmount = 6500,
262
263 Gradient1 = Color(66, 89, 255),
264
265 Gradient2 = Color(20, 184, 255),
266
267 PrintTime = 200 (This tier would print $1,000 every 10 seconds)
268
269 },
270
271 },
272
273 Emerald = {
274
275 PrintName = "Emerald Money Printer",
276
277 price = 15000,
278
279 cmd = "buyprinter_emerald",
280
281
282
283 PrintAmount = 8500,
284
285 Gradient1 = Color(0, 126, 27),
286
287 Gradient2 = Color(0, 214, 46),
288
289 PrintTime = 300
290
291 },
292
293 },
294
295 Ruby = {
296
297 PrintName = "Ruby Money Printer",
298
299 price = 20000,
300
301 cmd = "buyprinter_ruby",
302
303
304
305 PrintAmount = 2000,
306
307 Gradient1 = Color(178, 0, 80),
308
309 Gradient2 = Color(240, 0, 40),
310
311 PrintTime = 400,
312
313 AllowedVIPs = {
314
315 "vip",
316
317 },
318
319 },
320
321 Diamond = {
322
323 PrintName = "Diamond Money Printer",
324
325 price = 35000,
326
327 cmd = "buyprinter_diamond",
328
329
330
331 PrintAmount = 10000,
332
333 InkSystem = false,
334
335 CoolingSystem = false,
336
337 InvertColors = true,
338
339 Gradient1 = Color(0, 140, 124),
340
341 Gradient2 = Color(0, 240, 180),
342
343 PrintTime = 400,
344
345 AllowedVIPs = {
346
347 "supporter",
348
349 },
350
351 },
352
353 },
354
355
356
357--[[
358
359 These tables allow you to customize each upgrade's price and model.
360
361 You shouldn't have to modify the latter at any point, but it's up to you if you want to.
362
363]]
364
365 InkCartridge = {
366
367 PrintName = "Money Printer Ink Cartridge",
368
369 price = 1000,
370
371 model = "models/freeman/compact_printer_ink.mdl",
372
373 cmd = "buyprinterink",
374
375
376
377 Disabled = false, -- If set to true, the item won't show up in the F4 menu.
378
379 },
380
381 InkSlot = {
382
383 PrintName = "Money Printer Ink Cartridge Slot",
384
385 price = 1000,
386
387 model = "models/Items/car_battery01.mdl",
388
389 cmd = "buyprinterslot",
390
391
392
393 Disabled = false, -- If set to true, the item won't show up in the F4 menu.
394
395 },
396
397 RepairPart = {
398
399 PrintName = "Money Printer Repair Part",
400
401 price = 5000,
402
403 model = "models/props_lab/reciever01d.mdl",
404
405 cmd = "buyprinterrepair",
406
407
408
409 Disabled = false, -- If set to true, the item won't show up in the F4 menu.
410
411 },
412
413 HQCooling = {
414
415 PrintName = "Money Printer High Quality Cooling",
416
417 price = 5000,
418
419 model = "models/props_phx/gears/spur12.mdl",
420
421 cmd = "buyprintercooling",
422
423
424
425 Disabled = false, -- If set to true, the item won't show up in the F4 menu.
426
427 },
428
429
430
431--[[
432
433 Printing bonus event, triggered with the `elegant_printers_triggerevent` command.
434
435 You can let superadmins run that command whenever they want, or make it part of a package of your favorite donation system!
436
437]]
438
439 EventDuration = 60 * 60 * 3,
440
441-- Duration in seconds ((60 * 60 * 3) seconds = 3 hours)
442
443
444
445 EventPrintMultiplier = 1.5,
446
447-- 1.5 equals to +50% print bonus!
448
449
450
451--[[
452
453 Usergroup overrides and bonuses
454
455]]
456
457 PrintMultiplierVIPs = { -- You can make it so certain usergroups benefit from a permanent print percentage bonus, the same way as the event print multiplier.
458
459 superadmin = 4.5,
460
461 },
462
463 UpgradedMaxInkVIPs = { -- Same goes with maximum ink cartridge slot upgrade limits!
464
465 superadmin = 20,
466
467 },
468
469 GlobalMaxVIPs = {
470
471 vip = 10,
472
473 superadmin = math.huge,
474
475 },
476
477
478
479--[[
480
481 Miscellaneous values, used for printing in the chat as well as the console, and the F4 menu category.
482
483]]
484
485 CommunityName = "Elegant Printers",
486
487 CommunityColor = Color(41, 132, 244),
488
489}
490
491
492
493--[[
494
495 Past this point, I strongly advise you not to modify or remove anything else in the addon; unless you know what you are doing.
496
497 I have made it so the addition of the printers and their upgrades to the F4 menu are completely automated, entirely through
498
499 the use of the above config table. If you ended up breaking this file, just start over and try again!
500
501
502
503 Make sure to restart everytime you make a change to be sure everything has been applied properly.
504
505 ALSO, DON'T FORGET ANY COMMAS.
506
507
508
509 If you have encountered any bug, and are absolutely certain that it is not your fault, please create a support ticket.
510
511]]