Advertisement
Guest User

DarkRP level system DE

a guest
Jun 18th, 2022
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.54 KB | None | 0 0
  1. /////////////////////////
  2. // Configuration file //
  3. /////////////////////////
  4.  
  5. LevelSystemConfiguration = {} -- Ignore
  6. local Printers = {} -- Ignore
  7. local Books = {} -- Ignore
  8.  
  9. //Language settings
  10. LevelSystemConfiguration.Language = "DE" -- (available: FR, EN, DE, PL, RU, zh-CN)
  11.  
  12. //Hud settings
  13. LevelSystemConfiguration.EnableBar = true -- Is the XP Bar enabled?
  14. LevelSystemConfiguration.BarText = true -- Is the bar text enabled?
  15. LevelSystemConfiguration.XPTextColor = Color(255,255,255,255) -- The color of the XP percentage HUD element.
  16. LevelSystemConfiguration.LevelBarColor = {6,116,255} -- The color of the XP bar. (Sorry this one is different. It is still {R,G,B})
  17. LevelSystemConfiguration.XPBarYPos = 0 -- Y position of the XP bar
  18. LevelSystemConfiguration.LevelText = true -- Enable the white text on left bottom?
  19. LevelSystemConfiguration.LevelColor = Color(255,255,255,255) -- The color of the "Level: 1" HUD element. White looks best. (This setting is nullified if you have the prestige system)
  20. LevelSystemConfiguration.LevelTextPos = {1.5, 180.0} -- The position of the LevelText. Y starts from bottom. Fiddle with it
  21. LevelSystemConfiguration.DisplayLevel = true -- Show player levels when you look at them
  22. LevelSystemConfiguration.GreenJobBars = true -- Are the green bars at the bottom of jobs enabled? KEEP THIS TRUE!
  23. LevelSystemConfiguration.GreenAllBars = true -- Are the green bars at the bottom of everything but jobs enabled? Recommended(true)
  24.  
  25. //Kill settings
  26. LevelSystemConfiguration.KillModule = true -- Give XP + Money for kills! -- Next 2 settings control this.
  27. LevelSystemConfiguration.Friendly = true -- Only take away money / give XP if the killer is a lower level/same level than the victim. (Recommended:true)
  28. LevelSystemConfiguration.TakeAwayMoneyAmount = 100 -- How much money to take away from players when they are killed and add to the killer. You can change this to 0 if none. The XP amount is dynamic.
  29. LevelSystemConfiguration.NPCXP = true -- Give XP when an NPC is killed?
  30. LevelSystemConfiguration.NPCXPAmount = 10 -- Amount of XP to give when an NPC is killed
  31.  
  32. //Timer settings
  33. LevelSystemConfiguration.TimerModule = true -- Give XP to everybody every howeverlong
  34. LevelSystemConfiguration.Timertime = 120 -- How much time (in seconds) until everybody gets given XP
  35. LevelSystemConfiguration.TimerXPAmount = 50 -- How much XP to give each time it goes off
  36. LevelSystemConfiguration.TimerXPAmountVip = 100 -- How much XP to give for vip players each time it goes off
  37. LevelSystemConfiguration.TimerXPVipGroups = {"vip", "vip+", "vip++"} -- The vip groups
  38.  
  39. //XP settings
  40. LevelSystemConfiguration.XPMult = 1 -- How hard it is to level up. 2 would require twice as much XP, ect.
  41. LevelSystemConfiguration.MaxLevel = 99 -- The max level
  42. LevelSystemConfiguration.ContinueXP = false -- If remaining XP continues over to next levels. I recommend this to be false. Seriously. What if a level 1 gets 99999999 XP somehow? He is level 99 so quickly.
  43. LevelSystemConfiguration.BoughtXP = true -- Does the player gain xp from buying something (shipment/entity)
  44.  
  45. //Printer settings
  46. LevelSystemConfiguration.PrinterSound = true -- Give the printers sounds?
  47. LevelSystemConfiguration.PrinterMaxP = 4 -- How many times a printer can print before stopping. Change this to 0 if you want infine.
  48. LevelSystemConfiguration.PrinterMax = 4 -- How many printers of a certain type a player can own at any one time
  49. LevelSystemConfiguration.PrinterOverheat = false -- Can printers overheat?
  50. LevelSystemConfiguration.PrinterTime = 120 -- How long it takes printers to print
  51. LevelSystemConfiguration.PrinterCanCollect = true -- Can players collect from printers that are 5 levels above their level? (Recommended: false)
  52. LevelSystemConfiguration.PrinterEpilepsy = true -- If printers flash different colors when they have money in them.
  53.  
  54. //Book settings
  55. LevelSystemConfiguration.BookMax = 4 -- How many Books of a certain type a player can own at any one time
  56. LevelSystemConfiguration.BookOnTouch = true -- Consume the book on touch?
  57.  
  58.  
  59. /*Template Code for printers/*
  60. local Printer= {} -- Leave this line
  61. Printer.Name = "Your Printer Name"
  62. Printer.Type = "yourprintername" -- A UNIQUE identifier STRING, can be anything. NO SPACES! The player does not see this.
  63. Printer.Category = "printers" -- The category of the printer (See http:--wiki.darkrp.com/index.php/DarkRP:Categories)
  64. Printer.XPPerPrint = 10 -- How much XP to give a player every time they print.
  65. Printer.MoneyPerPrint = 50 -- How much money to give a player every time they print.
  66. Printer.Color = Color(255,255,255,255) -- The color of the printer. Setting it to (255,255,255,255) will make it the normal prop color.
  67. Printer.Model = "models/props_lab/reciever01b.mdl" -- The model of the printer. To find the path of a model, right click it in the spawn menu and click "Copy to Clipboard"
  68. Printer.Prestige = 0 -- The prestige you have to be to buy the printer. Only works with the prestige DLC on Gmodstore.
  69. Printer.Allowed = {} -- Same as DarkRP .allowed
  70. Printer.CustomCheck = function(ply) return CLIENT or table.HasValue({"vip"}, ply:GetNWString("usergroup")) end -- Custom check, this one will make the printer vip only
  71. Printer.CustomCheckFailMsg = "This printer is vip only" -- Message to display if the player can"t buy the entity
  72. table.insert(Printers,Printer) -- Leave this line
  73. */
  74.  
  75. // Default printers:
  76. local Printer={}
  77. Printer.Name = "Regular Printer"
  78. Printer.Type = "regularprinter"
  79. Printer.XPPerPrint = 65
  80. Printer.MoneyPerPrint = 100
  81. Printer.Color = Color(255,255,255,255)
  82. Printer.Model = "models/props_lab/reciever01b.mdl"
  83. Printer.Price = 1000
  84. Printer.Level = 1
  85. Printer.Prestige = 0
  86. table.insert(Printers,Printer)
  87.  
  88. local Printer={}
  89. Printer.Name = "Golden Money Printer"
  90. Printer.Type = "goldenprinter"
  91. Printer.XPPerPrint = 300
  92. Printer.MoneyPerPrint = 300
  93. Printer.Color = Color(255,215,0)
  94. Printer.Model = "models/props_lab/reciever01b.mdl"
  95. Printer.Price = 3000
  96. Printer.Level = 10
  97. Printer.Prestige = 0
  98. table.insert(Printers,Printer)
  99.  
  100. local Printer={}
  101. Printer.Name = "Ruby Money Printer"
  102. Printer.Type = "rubyprinter"
  103. Printer.XPPerPrint = 1069
  104. Printer.MoneyPerPrint = 1200
  105. Printer.Color = Color(255,0,0)
  106. Printer.Model = "models/props_lab/reciever01a.mdl"
  107. Printer.Price = 5000
  108. Printer.Level = 20
  109. Printer.Prestige = 0
  110. table.insert(Printers,Printer)
  111.  
  112. local Printer={}
  113. Printer.Name = "Platinum Money Printer"
  114. Printer.Type = "platprinter"
  115. Printer.XPPerPrint = 1800
  116. Printer.MoneyPerPrint = 1500
  117. Printer.Color = Color(255,255,255)
  118. Printer.Model = "models/props_c17/consolebox03a.mdl"
  119. Printer.Price = 10000
  120. Printer.Level = 30
  121. Printer.Prestige = 0
  122. table.insert(Printers,Printer)
  123.  
  124. local Printer={}
  125. Printer.Name = "Diamond Money Printer"
  126. Printer.Type = "diamondprinter"
  127. Printer.XPPerPrint = 2500
  128. Printer.MoneyPerPrint = 5000
  129. Printer.Color = Color(135,200,250)
  130. Printer.Model = "models/props_c17/consolebox01a.mdl"
  131. Printer.Price = 50000
  132. Printer.Level = 40
  133. Printer.Prestige = 0
  134. table.insert(Printers,Printer)
  135.  
  136. local Printer={}
  137. Printer.Name = "Emerald Money Printer"
  138. Printer.Type = "emeraldprinter"
  139. Printer.XPPerPrint = 3550
  140. Printer.MoneyPerPrint = 10000
  141. Printer.Color = Color(0,100,0)
  142. Printer.Model = "models/props_c17/consolebox01a.mdl"
  143. Printer.Price = 100000
  144. Printer.Level = 50
  145. Printer.Prestige = 0
  146. table.insert(Printers,Printer)
  147.  
  148. local Printer={}
  149. Printer.Name = "Unubtainium Money Printer"
  150. Printer.Type = "unubprinter"
  151. Printer.XPPerPrint = 3500
  152. Printer.MoneyPerPrint = 15000
  153. Printer.Color = Color(255,255,255)
  154. Printer.Model = "models/props_lab/harddrive01.mdl"
  155. Printer.Price = 120000
  156. Printer.Level = 60
  157. Printer.Prestige = 0
  158. table.insert(Printers,Printer)
  159.  
  160. /*Template Code for books/*
  161. local Book= {} -- Leave this line
  162. Book.Name = "Your Book Name"
  163. Book.Type = "yourbookname" -- A UNIQUE identifier STRING, can be anything. NO SPACES! The player does not see this.
  164. Book.Category = "Books" -- The category of the Book (See http:--wiki.darkrp.com/index.php/DarkRP:Categories)
  165. Book.Color = Color(255,255,255,255) -- The color of the Book. Setting it to (255,255,255,255) will make it the normal prop color.
  166. Book.Model = "models/props_lab/binderblue.mdl" -- The model of the Book. To find the path of a model, right click it in the spawn menu and click "Copy to Clipboard"
  167. Book.Prestige = 0 -- The prestige you have to be to buy the Book. Only works with the prestige DLC on Gmodstore.
  168. Book.Allowed = {} -- Same as DarkRP .allowed
  169. Book.CustomCheck = function(ply) return CLIENT or table.HasValue({"vip"}, ply:GetNWString("usergroup")) end -- Custom check, this one will make the printer vip only
  170. Book.CustomCheckFailMsg = "This book is vip only" -- Message to display if the player can"t buy the entity
  171. table.insert(Books,Book) -- Leave this line
  172. */
  173.  
  174. // Default books:
  175. local Book={}
  176. Book.Name = "Small Book"
  177. Book.Type = "smallbook"
  178. Book.Color = Color(255,255,255)
  179. Book.Model = "models/props_lab/binderblue.mdl"
  180. Book.Price = 750
  181. Book.XP = 500
  182. Book.Level = 1
  183. Book.Prestige = 0
  184. table.insert(Books,Book)
  185.  
  186. local Book={}
  187. Book.Name = "Medium Book"
  188. Book.Type = "mediumbook"
  189. Book.Color = Color(255,255,255)
  190. Book.Model = "models/props_lab/bindergreen.mdl"
  191. Book.Price = 3000
  192. Book.XP = 2000
  193. Book.Level = 1
  194. Book.Prestige = 0
  195. table.insert(Books,Book)
  196.  
  197. local Book={}
  198. Book.Name = "Big Book"
  199. Book.Type = "bigbook"
  200. Book.Color = Color(255,255,255)
  201. Book.Model = "models/props_lab/binderredlabel.mdl"
  202. Book.Price = 7500
  203. Book.XP = 5000
  204. Book.Level = 1
  205. Book.Prestige = 0
  206. table.insert(Books,Book)
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220. // Ignore everything under this line.
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234. local en_language = {
  235. lvl_buy_entity = "You\'re not the right level to buy this!", -- Error message when someone can't buy an entity
  236. lvl_take_job = "You\'re not the right level to become this!", -- Error message when someone can't take a job
  237. lvl_kill_notify = "You got %s XP and %s for killing %s", -- Notification to the killer when he kill someone (vars: XP, money, victime)
  238. lvl_kill_notify2 = "You got %s XP for killing %s", -- Notification to the killer when he kill someone (vars: XP, victime)
  239. lvl_kill_notify3 = "You killed %s", -- Notification to the killer when he kill someone (vars: victime)
  240. lvl_kill_npc = "You got %s XP for killing an NPC.", -- Notification to the killer when he kill a npc (vars: XP)
  241. lvl_death = "You died and lost %s!", -- Notification to the victim when he lost money on death (vars: money)
  242. lvl_play_on = "You got %s XP for playing on the server.", -- Notification to everyone when they gain xp by the timer (vars: XP)
  243. lvl_recieve_xp = "You got %s XP!", -- Notification to the player when he recieve xp (vars: ammount)
  244. lvl_reach_level = "%s has reached level %s!", -- Notification to everyone when someone reach a level (vars: name, PlayerLevel)
  245. lvl_book_notify = "You got %s XP for using the book %s!", -- Notification to the player when he use a book (vars: XP, bookname)
  246. lvl_printer_use = "You got %s XP and %s from this printer.", -- Notification to the player when he use a printer (vars: XP, money)
  247. lvl_printer_level = "You need to be a higher level to use this!", -- Notification to the player when he can't use a printer
  248. }
  249. DarkRP.addLanguage("en", en_language)
  250.  
  251. local de_language = {
  252. lvl_buy_entity = "Du hast nicht das richtige Level, um dies zu kaufen!", -- Error message when someone can't buy an entity
  253. lvl_take_job = "Du hast nicht das richtige Level, um das zu werden!", -- Error message when someone can't take a job
  254. lvl_kill_notify = "Du hast %s XP und %s für das Töten von %s erhalten", -- Notification to the killer when he kill someone (vars: XP, money, victime)
  255. lvl_kill_notify2 = "Du hast %s XP für das Töten von %s erhalten", -- Notification to the killer when he kill someone (vars: XP, victime)
  256. lvl_kill_notify3 = "Du hast %s getötet", -- Notification to the killer when he kill someone (vars: victime)
  257. lvl_kill_npc = "Du hast %s XP für das Töten eines NPCs erhalten.", -- Notification to the killer when he kill a npc (vars: XP)
  258. lvl_death = "Du bist gestorben und hast %s verloren!", -- Notification to the victim when he lost money on death (vars: money)
  259. lvl_play_on = "Du hast %s XP für das Spielen auf dem Server erhalten.", -- Notification to everyone when they gain xp by the timer (vars: XP)
  260. lvl_recieve_xp = "Du hast %s XP!", -- Notification to the player when he recieve xp (vars: ammount)
  261. lvl_reach_level = "%s hat Level %s erreicht!", -- Notification to everyone when someone reach a level (vars: name, PlayerLevel)
  262. lvl_book_notify = "Du hast %s XP für die Verwendung des Buches %s erhalten!", -- Notification to the player when he use a book (vars: XP, bookname)
  263. lvl_printer_use = "Du hast %s XP und %s von diesem Drucker erhalten.", -- Notification to the player when he use a printer (vars: XP, money)
  264. lvl_printer_level = "Du brauchst ein höheres Level, um dies zu verwenden!", -- Notification to the player when he can't use a printer
  265. }
  266. DarkRP.addLanguage("de", de_language)
  267.  
  268. local fr_language = {
  269. lvl_buy_entity = "Vous n\'avez pas le bon level pour acheter ça!",
  270. lvl_take_job = "Vous n\'avez pas le bon level pour avoir ce job!",
  271. lvl_kill_notify = "Vous avez reçu %s XP et %s pour avoir tué %s",
  272. lvl_kill_notify2 = "Vous avez reçu %s XP pour avoir tué %s",
  273. lvl_kill_notify3 = "Vous avez tué %s",
  274. lvl_kill_npc = "Vous avez reçu %s XP pour avoir tué un NPC.",
  275. lvl_death = "Vous êtes mort et avez perdu %s!",
  276. lvl_play_on = "Vous avez reçu %s XP Pour avoir joué sur le serveur.",
  277. lvl_recieve_xp = "Vous avez reçu %s XP!",
  278. lvl_reach_level = "%s a atteint le niveau %s!",
  279. lvl_book_notify = "Vous avez reçu %s XP pour avoir utilisé un livre %s!",
  280. lvl_printer_use = "Vous avez reçu %s XP et %s du printer.",
  281. lvl_printer_level = "Vous devez avoir un plus haut niveau pour utiliser ce printer!",
  282. }
  283. DarkRP.addLanguage("fr", fr_language)
  284.  
  285. local pl_language = {
  286. lvl_buy_entity = "Ty nie masz odpowiedniego poziomu by to kupić!",
  287. lvl_take_job = "Ty nie masz odpowiedniego poziomu by tym zostać!",
  288. lvl_kill_notify = "Ty masz %s XP i %s za zabicie %s",
  289. lvl_kill_notify2 = "Ty masz %s XP za zabicie %s",
  290. lvl_kill_notify3 = "Zabiłeś %s",
  291. lvl_kill_npc = "Ty masz %s XP za zabicie NPC.",
  292. lvl_death = "Zmarłeś i straciłeś %s!",
  293. lvl_play_on = "Ty masz %s XP za grę na serwerze.",
  294. lvl_recieve_xp = "Ty masz %s XP!",
  295. lvl_reach_level = "%s osiągnął poziom %s!",
  296. lvl_book_notify = "Ty masz %s XP za korzystanie z książki %s!",
  297. lvl_printer_use = "Ty masz %s XP i %s z tej drukarki.",
  298. lvl_printer_level = "Aby móc z tego korzystać, musisz być na wyższym poziomie!",
  299. }
  300. DarkRP.addLanguage("pl", pl_language)
  301.  
  302. local ru_language = {
  303. lvl_buy_entity = "Вы не того уровня, чтобы купить это!",
  304. lvl_take_job = "Вы не того уровня для этой работы!",
  305. lvl_kill_notify = "Вы получили %s опыта и %s за убийство %s",
  306. lvl_kill_notify2 = "Вы получили %s опыта за убийство %s",
  307. lvl_kill_notify3 = "Вы убили %s",
  308. lvl_kill_npc = "Вы получили %s опыта за убийство NPC.",
  309. lvl_death = "Вы умерли и потеряли %s!",
  310. lvl_play_on = "Вы получили %s опыта за игру на этом сервере.",
  311. lvl_recieve_xp = "Вы получили %s опыта!",
  312. lvl_reach_level = "%s достиг уровня %s!",
  313. lvl_book_notify = "Вы получили %s опыта за использование книги %s!",
  314. lvl_printer_use = "Вы получили %s опыта и %s из принтера.",
  315. lvl_printer_level = "Вы должны быть более высокого уровня, чтобы использовать это!",
  316. }
  317. DarkRP.addLanguage("ru", ru_language)
  318.  
  319. local cn_language = {
  320. lvl_buy_entity = "你没有足够的等级来购买这个!",
  321. lvl_take_job = "你没有足够的等级去就职这个!",
  322. lvl_kill_notify = "你获得了 %s XP 和 %s 作为击杀 %s 的奖励",
  323. lvl_kill_notify2 = "你获得了 %s XP 作为击杀 %s 的奖励",
  324. lvl_kill_notify3 = "你击杀了 %s",
  325. lvl_kill_npc = "你获得了 %s XP 作为击杀了一个NPC的奖励.",
  326. lvl_death = "你因死亡丢失了 %s!",
  327. lvl_play_on = "你获得了 %s XP 作为游玩本服的奖励.",
  328. lvl_recieve_xp = "你获得了 %s XP!",
  329. lvl_reach_level = "%s 提升到了等级 %s!",
  330. lvl_book_notify = "你获得了 %s XP 因为你阅读了书籍: %s",
  331. lvl_printer_use = "你从这个印钞机获得了 %s XP 和 %s.",
  332. lvl_printer_level = "你需要拥有更高的等级才能使用这个!",
  333. }
  334. DarkRP.addLanguage("zh-CN", cn_language)
  335.  
  336.  
  337. hook.Add("loadCustomDarkRPItems", "manolis:MVLevels:CustomLoad", function()
  338.  
  339. for k,v in pairs(Printers) do
  340. local Errors = {}
  341. if not type(v.Name) == "string" then table.insert(Errors, "The name of a printer is INVALID!") end
  342. if not type(v.Type) == "string" then table.insert(Errors, "The type of a printer is INVALID!") end
  343. if not type(v.XPPerPrint) == "number" then table.insert(Errors, "The XP of a printer is INVALID!") end
  344. if not type(v.MoneyPerPrint) == "number" then table.insert(Errors, "The money of a printer is INVALID!") end
  345. if not type(v.Color) == "table" then table.insert(Errors, "The color of a printer is INVALID!") end
  346. if not type(v.Model) == "string" then table.insert(Errors, "The model of a printer is INVALID!") end
  347. if not type(v.Price) == "number" then table.insert(Errors, "The price of a printer is INVALID!") end
  348. if not type(v.Category) == "string" then v.Category="" end
  349. if not type(v.Level) == "number" then table.insert(Errors, "The level of a printer is INVALID!") end
  350. local ErrorCount = 0
  351. for k,v in pairs(Errors) do
  352. error(v)
  353. ErrorCount = ErrorCount + 1
  354. end
  355.  
  356.  
  357.  
  358. if not(ErrorCount==0) then return false end
  359.  
  360. local t = {
  361. ent = "vrondakis_printer",
  362. model = v.Model,
  363. category = v.Category,
  364. price = v.Price,
  365. prestige = (v.Prestige or 0),
  366. printer = true,
  367. level = v.Level,
  368. max = LevelSystemConfiguration.PrinterMax,
  369. cmd = "buyvrondakis"..v.Type.."printer",
  370. allowed = v.Allowed,
  371. vrondakisName = v.Name,
  372. vrondakisType = v.Type,
  373. vrondakisXPPerPrint = v.XPPerPrint,
  374. vrondakisMoneyPerPrint = v.MoneyPerPrint,
  375. vrondakisColor = v.Color,
  376. vrondakisModel = v.Model,
  377. customCheck = (v.CustomCheck or function() return true end),
  378. CustomCheckFailMsg = v.CustomCheckFailMsg,
  379. vrondakisPrinterOverheat = LevelSystemConfiguration.PrinterOverheat,
  380. vrondakisPrinterMaxP = LevelSystemConfiguration.PrinterMaxP,
  381. vrondakisPrinterTime = LevelSystemConfiguration.PrinterTime,
  382. vrondakisPrinterCanCollect = LevelSystemConfiguration.PrinterCanCollect,
  383. vrondakisPrinterEpilepsy = LevelSystemConfiguration.PrinterEpilepsy
  384. }
  385.  
  386. if(v.DParams) then
  387. for k,v in pairs(v.DParams) do
  388. t[k] = v
  389. end
  390. end
  391.  
  392. DarkRP.createEntity(v.Name,t)
  393.  
  394. end
  395.  
  396.  
  397.  
  398.  
  399.  
  400. for k,v in pairs(Books) do
  401. local Errors = {}
  402. if not type(v.Name) == "string" then table.insert(Errors, "The name of a book is INVALID!") end
  403. if not type(v.Type) == "string" then table.insert(Errors, "The type of a book is INVALID!") end
  404. if not type(v.Color) == "table" then table.insert(Errors, "The color of a book is INVALID!") end
  405. if not type(v.Model) == "string" then table.insert(Errors, "The model of a book is INVALID!") end
  406. if not type(v.Price) == "number" then table.insert(Errors, "The price of a book is INVALID!") end
  407. if not type(v.XP) == "number" then table.insert(Errors, "The xp ammount of a book is INVALID!") end
  408. if not type(v.Category) == "string" then v.Category="" end
  409. if not type(v.Level) == "number" then table.insert(Errors, "The level of a book is INVALID!") end
  410. local ErrorCount = 0
  411. for k,v in pairs(Errors) do
  412. error(v)
  413. ErrorCount = ErrorCount + 1
  414. end
  415.  
  416.  
  417.  
  418. if not(ErrorCount==0) then return false end
  419.  
  420. local t = {
  421. ent = "vrondakis_book",
  422. model = v.Model,
  423. category = v.Category,
  424. price = v.Price,
  425. xp = v.XP,
  426. prestige = (v.Prestige or 0),
  427. book = true,
  428. level = v.Level,
  429. max = LevelSystemConfiguration.BookMax,
  430. cmd = "buyvrondakis"..v.Type.."book",
  431. allowed = v.Allowed,
  432. vrondakisName = v.Name,
  433. vrondakisType = v.Type,
  434. vrondakisColor = v.Color,
  435. vrondakisModel = v.Model,
  436. customCheck = (v.CustomCheck or function() return true end),
  437. CustomCheckFailMsg = v.CustomCheckFailMsg,
  438. }
  439.  
  440. if(v.DParams) then
  441. for k,v in pairs(v.DParams) do
  442. t[k] = v
  443. end
  444. end
  445.  
  446. DarkRP.createEntity(v.Name,t)
  447.  
  448. end
  449.  
  450. end)
  451.  
  452.  
  453. DarkRP.registerDarkRPVar("xp", net.WriteDouble, net.ReadDouble)
  454. DarkRP.registerDarkRPVar("level", net.WriteDouble, net.ReadDouble)
  455. DarkRP.registerDarkRPVar("prestige", net.WriteDouble, net.ReadDouble)
  456.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement