SHARE
TWEET

F4menu

taka_qiao Jul 15th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Argon: Print Station
  2. /*
  3. This file contains F4 menu configuration.
  4. To change price i suggest using built in game gui.
  5. To start gui write "/argon" in chat.
  6.  
  7. But if you want you can just remove 'tonumber(cfg[1][1].value)'
  8. and put whatever fixed price you want.
  9.  
  10. In future updates when donator entities come all custom checks
  11. will be also possible via in game gui.
  12.  
  13. PLEASE REMEMBER ABOUT COMMAS AFTER PRICE NUMBER
  14.  
  15. Also if you have any issues with the script post support ticket.
  16. Thanks and have fun.
  17. */
  18.  
  19. function mps.createF4(cfg)
  20. DarkRP.createCategory{
  21.    name = "Argon: 印钞系统",
  22.     categorises = "entities",
  23.     startExpanded = false,
  24.     color = Color(105, 105, 155, 255),
  25.     canSee = function(ply) return true end,
  26.     sortOrder = 1,
  27. }
  28.  
  29. DarkRP.createCategory{
  30.    name = "Argon: 印钞系统 (货物)",
  31.     categorises = "entities",
  32.     startExpanded = false,
  33.     color = Color(105, 105, 155, 255),
  34.     canSee = function(ply) return true end,
  35.     sortOrder = 1,
  36. }
  37.  
  38. DarkRP.createEntity( "印钞机 检测系统 (x3)", {
  39.     ent = "mps_detector_shipment",
  40.     model = "models/2rek/mps/mps_detector.mdl",
  41.     price = tonumber(cfg[17][1].value),
  42.     max = 2,
  43.     cmd = "mps_buyPrinterDetector",
  44.     category = "Argon: 印钞系统 (货物)",
  45.     sortOrder = 1,
  46. } )
  47.  
  48. DarkRP.createEntity( "印钞机底座", {
  49.     ent = "mps_printer_base",
  50.     model = "models/2rek/mps/mps_base.mdl",
  51.     price = tonumber(cfg[0][1].value),
  52.     max = 2,
  53.     cmd = "mps_buyPrinterBase",
  54.     allowed = TEAM_GANG,
  55.     category = "Argon: 印钞系统",
  56.     sortOrder = 1,
  57. } )
  58.  
  59. DarkRP.createEntity( "存储 1", {
  60.     ent = "mps_storage_1",
  61.     model = "models/2rek/mps/mps_storage_1.mdl",
  62.     price = tonumber(cfg[1][1].value),
  63.     max = 2,
  64.     cmd = "mps_buyStorage1",
  65.     allowed = TEAM_GANG,
  66.     category = "Argon: 印钞系统",
  67.     sortOrder = 5,
  68. } )
  69.  
  70. DarkRP.createEntity( "存储 2", {
  71.     ent = "mps_storage_2",
  72.     model = "models/2rek/mps/mps_storage_2.mdl",
  73.     price = tonumber(cfg[2][1].value),
  74.     max = 2,
  75.     cmd = "mps_buyStorage2",
  76.     allowed = TEAM_GANG,
  77.     category = "Argon: 印钞系统",
  78.     sortOrder = 5,
  79. } )
  80.  
  81. DarkRP.createEntity( "存储 3", {
  82.     ent = "mps_storage_3",
  83.     model = "models/2rek/mps/mps_storage_3.mdl",
  84.     price = tonumber(cfg[3][1].value),
  85.     max = 2,
  86.     cmd = "mps_buyStorage3",
  87.     allowed = TEAM_GANG,
  88.     category = "Argon: 印钞系统",
  89.     sortOrder = 5,
  90. } )
  91.  
  92. DarkRP.createEntity( "纸盘 1", {
  93.     ent = "mps_tray_1",
  94.     model = "models/2rek/mps/mps_tray_1.mdl",
  95.     price = tonumber(cfg[4][1].value),
  96.     max = 2,
  97.     cmd = "mps_buyTray1",
  98.     allowed = TEAM_GANG,
  99.     category = "Argon: 印钞系统",
  100.     sortOrder = 5,
  101. } )
  102.  
  103. DarkRP.createEntity( "纸盘 2", {
  104.     ent = "mps_tray_2",
  105.     model = "models/2rek/mps/mps_tray_2.mdl",
  106.     price = tonumber(cfg[5][1].value),
  107.     max = 2,
  108.     cmd = "mps_buyTray2",
  109.     allowed = TEAM_GANG,
  110.     category = "Argon: 印钞系统",
  111.     sortOrder = 5,
  112. } )
  113.  
  114. DarkRP.createEntity( "纸盘 3", {
  115.     ent = "mps_tray_3",
  116.     model = "models/2rek/mps/mps_tray_3.mdl",
  117.     price = tonumber(cfg[6][1].value),
  118.     max = 2,
  119.     cmd = "mps_buyTray3",
  120.     allowed = TEAM_GANG,
  121.     category = "Argon: 印钞系统",
  122.     sortOrder = 5,
  123. } )
  124.  
  125. DarkRP.createEntity( "打印头 1", {
  126.     ent = "mps_print_head_1",
  127.     model = "models/2rek/mps/mps_printhead_1.mdl",
  128.     price = tonumber(cfg[7][1].value),
  129.     max = 2,
  130.     cmd = "mps_buyPrinthead1",
  131.     allowed = TEAM_GANG,
  132.     category = "Argon: 印钞系统",
  133.     sortOrder = 5,
  134. } )
  135.  
  136. DarkRP.createEntity( "打印头 2", {
  137.     ent = "mps_print_head_2",
  138.     model = "models/2rek/mps/mps_printhead_2.mdl",
  139.     price = tonumber(cfg[8][1].value),
  140.     max = 2,
  141.     cmd = "mps_buyPrinthead2",
  142.     allowed = TEAM_GANG,
  143.     category = "Argon: 印钞系统",
  144.     sortOrder = 5,
  145. } )
  146.  
  147. DarkRP.createEntity( "打印头 3", {
  148.     ent = "mps_print_head_3",
  149.     model = "models/2rek/mps/mps_printhead_3.mdl",
  150.     price = tonumber(cfg[9][1].value),
  151.     max = 2,
  152.     cmd = "mps_buyPrinthead3",
  153.     allowed = TEAM_GANG,
  154.     category = "Argon: 印钞系统",
  155.     sortOrder = 5,
  156. } )
  157.  
  158. DarkRP.createEntity( "纸", {
  159.     ent = "mps_paper",
  160.     model = "models/2rek/mps/mps_paper.mdl",
  161.     price = tonumber(cfg[10][1].value),
  162.     max = 2,
  163.     cmd = "mps_buyPaper",
  164.     allowed = TEAM_GANG,
  165.     category = "Argon: 印钞系统",
  166.     sortOrder = 5,
  167. } )
  168.  
  169. DarkRP.createEntity( "护甲", {
  170.     ent = "mps_armor",
  171.     model = "models/2rek/mps/mps_armor.mdl",
  172.     price = tonumber(cfg[11][1].value),
  173.     max = 2,
  174.     cmd = "mps_buyArmor",
  175.     allowed = TEAM_GANG,
  176.     category = "Argon: 印钞系统",
  177.     sortOrder = 5,
  178. } )
  179.  
  180. DarkRP.createEntity( "天线", {
  181.     ent = "mps_antenna",
  182.     model = "models/2rek/mps/mps_antenna.mdl",
  183.     price = tonumber(cfg[12][1].value),
  184.     max = 2,
  185.     cmd = "mps_buyAntenna",
  186.     allowed = TEAM_GANG,
  187.     category = "Argon: 印钞系统",
  188.     sortOrder = 5,
  189. } )
  190.  
  191. DarkRP.createEntity( "加速器", {
  192.     ent = "mps_booster",
  193.     model = "models/2rek/mps/mps_booster.mdl",
  194.     price = tonumber(cfg[13][1].value),
  195.     max = 2,
  196.     cmd = "mps_buyBooster",
  197.     allowed = TEAM_GANG,
  198.     category = "Argon: 印钞系统",
  199.     sortOrder = 5,
  200. } )
  201.  
  202. DarkRP.createEntity( "赞助代币", {
  203.     ent = "mps_token",
  204.     model = "models/2rek/mps/mps_token.mdl",
  205.     price = tonumber(cfg[14][1].value),
  206.     max = 50,
  207.     cmd = "mps_buyToken",
  208.     allowed = TEAM_GANG,
  209.     category = "Argon: 印钞系统",
  210.     sortOrder = 5,
  211. } )
  212.  
  213. DarkRP.createEntity( "保险柜", {
  214.     ent = "mps_safe",
  215.     model = "models/2rek/mps/mps_safe.mdl",
  216.     price = tonumber(cfg[15][1].value),
  217.     max = 2,
  218.     cmd = "mps_buySafe",
  219.     allowed = TEAM_GANG,
  220.     category = "Argon: 印钞系统",
  221.     sortOrder = 5,
  222. } )
  223.  
  224. DarkRP.createEntity( "键盘", {
  225.     ent = "mps_keypad",
  226.     model = "models/2rek/mps/mps_keypad.mdl",
  227.     price = tonumber(cfg[16][1].value),
  228.     max = 2,
  229.     cmd = "mps_buyKeypad",
  230.     allowed = TEAM_GANG,
  231.     category = "Argon: 印钞系统",
  232.     sortOrder = 5,
  233. } )
  234.  
  235. DarkRP.createEntity( "消音器", {
  236.     ent = "mps_silencer",
  237.     model = "models/2rek/mps/mps_silencer.mdl",
  238.     price = tonumber(cfg[18][1].value),
  239.     max = 2,
  240.     cmd = "mps_buySilencer",
  241.     allowed = TEAM_GANG,
  242.     category = "Argon: 印钞系统",
  243.     sortOrder = 5,
  244. } )
  245.  
  246. end
  247.  
  248. function mps.setLanguage(lang)
  249.   mps.lang = lang
  250. end
  251.  
  252. local function RecieveData( len, ply )
  253.     local cfg = net.ReadTable()
  254.     local lang = net.ReadString()
  255.     mps.setLanguage(lang)
  256.     mps.createF4(cfg)
  257. end
  258. net.Receive( "mps_initialconfigdata", RecieveData )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top