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