Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. -- _______ __ _______ __ __ _______ ______ ______
  2. -- | | |.---.-..----.| |.-----. | __||__|.--------..-----.| |.-----. | | || __ \| |.-----.
  3. -- | || _ || __| |_||__ --| |__ || || || _ || || -__| | || __/| ---||__ --|
  4. -- |__|_|__||___._||____| |_____| |_______||__||__|__|__|| __||__||_____| |__|____||___| |______||_____|
  5. --
  6. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  7. ///////////////////////// Warning! Nothing to edit here, you can break the system //////////////////////////////
  8. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  9.  
  10. MCS.AddonList = {
  11. ["CH FireSystem"] = {
  12. ["path"] = "lua/entities/npc_firetruck/init.lua",
  13. ["function"] = nil,
  14. ["function_sv"] = function(ply)
  15. if IsValid( ply ) and table.HasValue( CH_FireSystem.Config.AllowedTeams, team.GetName(ply:Team()) ) then
  16. net.Start( "FIRE_FiretruckMenu" )
  17. net.Send( ply )
  18. else
  19. DarkRP.notify(ply, 2, 5, "Only firefighters can access this NPC!")
  20. end
  21. end,
  22. ["enabled"] = false,
  23. },
  24. ["CH TowTruck"] = {
  25. ["path"] = "lua/entities/npc_towtruck/init.lua",
  26. ["function"] = nil,
  27. ["function_sv"] = function(ply)
  28. if IsValid( ply ) and ply:Team() == TEAM_TOWER then
  29. net.Start("TOW_TowTruck_Menu", ply)
  30. net.Send( ply )
  31. else
  32. DarkRP.notify(ply, 1, 5, "Only tow truck drivers can access this NPC!")
  33. end
  34. end,
  35. ["enabled"] = false,
  36. },
  37. ["CH ShopNPC"] = {
  38. ["path"] = "lua/entities/npc_shop_npc/init.lua",
  39. ["function"] = function() NPC_ShopMenu() end,
  40. ["function_sv"] = nil,
  41. ["enabled"] = false,
  42. },
  43. ["CH GovStation"] = {
  44. ["path"] = "lua/autorun/client/govstation_client.lua",
  45. ["function"] = function() GovStation_Menu() end,
  46. ["function_sv"] = nil,
  47. ["enabled"] = false,
  48. },
  49. ["SH Accessories"] = {
  50. ["path"] = "lua/accessory/sv_accessory.lua",
  51. ["function"] = nil,
  52. ["function_sv"] = function(ply) SH_ACC:Show(ply) end,
  53. ["enabled"] = false,
  54. },
  55. -- B e n o's addon support
  56. ["Bricks Crafting"] = {
  57. ["path"] = "lua/entities/mcs_npc/shared.lua",
  58. ["function"] = nil,
  59. ["function_sv"] = function(ply) net.Start( "BCS_Net_UseNPC" ) net.Send( ply ) end,
  60. ["enabled"] = true,
  61. },
  62. ["ClothesMod Change Name Menu"] = {
  63. ["path"] = "lua/entities/mcs_npc/shared.lua",
  64. ["function"] = function() OpenGlobalNameMenu() end,
  65. ["function_sv"] = nil,
  66. ["enabled"] = true,
  67. },
  68. ["ClothesMod Store Menu"] = {
  69. ["path"] = "lua/entities/mcs_npc/shared.lua",
  70. ["function"] = function() CM_OpenShop(LocalPlayer()) end,
  71. ["function_sv"] = nil,
  72. ["enabled"] = true,
  73. },
  74. ["ClothesMod Custom Shirt NPC"] = {
  75. ["path"] = "lua/entities/mcs_npc/shared.lua",
  76. ["function"] = function() MCSOpenGUIGlobal() end,
  77. ["function_sv"] = nil,
  78. ["enabled"] = true,
  79. },
  80. ["Hunter NPC"] = {
  81. ["path"] = "lua/entities/mcs_npc/shared.lua",
  82. ["function"] = nil,
  83. ["function_sv"] = function(ply)
  84. if !ply:Alive() then return end
  85.  
  86. local price = ply:GetNWInt("DeadmanKillerPrice", 0)
  87. if price == 0 then
  88. ply:ChatPrint("Tu as une peau d'animal a me vendre? Non? Alors dégage.")
  89. else
  90. ply:addMoney( price )
  91. ply:ChatPrint("Content de Marchander avec toi ! Voici $"..price )
  92. ply:SetNWInt("DeadmanKillerPrice", 0)
  93. end
  94. end,
  95. ["enabled"] = true,
  96. },
  97.  
  98. }
  99.  
  100. local function AddonListCheck()
  101.  
  102. for id, addon in pairs(MCS.AddonList) do
  103. if addon["path"] and file.Find(addon["path"], "LUA") then
  104. addon["enabled"] = true
  105. print(id.." enabled!")
  106. end
  107. end
  108.  
  109. end
  110.  
  111. timer.Simple(2, function() AddonListCheck() end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement