Alvaritooooooo

Untitled

Mar 1st, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.73 KB | None | 0 0
  1. NPCRobSystem.Config = {}
  2.  
  3. -- If you run into any issues and the addon throws errors at you, contact me through a support ticket, or add me on steam.
  4.  
  5. /*
  6. ====================================================
  7. This first section is for the core side of the addon
  8. ====================================================
  9. */
  10.  
  11.  
  12. -- NPC Model
  13. NPCRobSystem.Config.NPCModel = "models/props/starwars/tech/gonk_droid.mdl"
  14.  
  15.  
  16. -- NPC Text
  17. NPCRobSystem.Config.NPCText = "Armeria"
  18.  
  19.  
  20. -- The ULX groups that have access to the "savestorerob" command
  21. NPCRobSystem.Config.SaveComGroup = {
  22. ["superadmin"] = true,
  23. ["admin"] = true
  24. }
  25.  
  26.  
  27. -- The prefix in chat for the store actions
  28. NPCRobSystem.Config.StorePrefix = "[NPC Shop]"
  29.  
  30.  
  31. -- The color of the prefix in chat for the store actions
  32. NPCRobSystem.Config.StorePrefixColor = Color( 210, 195, 20 )
  33.  
  34.  
  35. -- The prefix in chat for the robbery actions
  36. NPCRobSystem.Config.RobPrefix = "[NPC Robbing]"
  37.  
  38.  
  39. -- The color of the prefix in chat for the robbery actions
  40. NPCRobSystem.Config.RobPrefixColor = Color( 20, 195, 210 )
  41.  
  42.  
  43. -- The font used throughout the addon
  44. NPCRobSystem.Config.Font = "Calibri"
  45.  
  46.  
  47. /*
  48. ========================================================
  49. This second section is for the robbery side of the addon
  50. ========================================================
  51. */
  52.  
  53.  
  54. -- Should the store be robable?
  55. NPCRobSystem.Config.RobberySystem = false
  56.  
  57.  
  58. -- How much does the NPC get robbed for?
  59. -- Advanced forumlas are accepted, for example:
  60. -- 1000 * #player.GetAll() | This times the amout of players by 1,000
  61. -- However static numbers also work
  62. NPCRobSystem.Config.RobAmount = 2000
  63.  
  64.  
  65. -- The amount of time it takes to rob the NPC
  66. NPCRobSystem.Config.RobTime = 20
  67.  
  68.  
  69. -- The amount of time it takes for the store to be robable again
  70. NPCRobSystem.Config.RobCoodownTime = 90
  71.  
  72.  
  73. -- What % of players need to be Government for the store to be robable? (Must be a decimal, e.g: 0.2 would be 20%)
  74. NPCRobSystem.Config.RobGovernmentAmount = 0.2
  75.  
  76.  
  77. -- How many players are needed on the server for the store to be robable?
  78. NPCRobSystem.Config.RobPlayerAmount = 5
  79.  
  80.  
  81. -- Max distance the robber is allowed away from the NPC while robbing it
  82. NPCRobSystem.Config.RobMaxDistance = 500
  83.  
  84.  
  85. -- How often does the npc call for help? Between 1 and x
  86. NPCRobSystem.Config.RobShouttime = 45
  87.  
  88.  
  89. -- This is the animation that is used while the NPC is being robbed
  90. -- For a list of all the usable ainimations, go to: https://pastebin.com/7Ezumawk
  91. NPCRobSystem.Config.RobActiveAni = "cower_Idle"
  92.  
  93.  
  94. -- Should the NPC play an alarm while being robbed?
  95. NPCRobSystem.Config.RobAlarmActive = true
  96.  
  97.  
  98. -- This is the alarm sound that is used while the NPC is being robbed
  99. -- For a list of all the usable sounds, go to: https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8f77.html
  100. NPCRobSystem.Config.RobAlarmDir = "ambient/alarms/alarm1.wav"
  101.  
  102.  
  103. -- Use the moneybag system? This system drops a money bag instead of giving it straight to the user
  104. NPCRobSystem.Config.RobMoneybagSystem = true
  105.  
  106.  
  107. -- The model of the "money bag" that will drop
  108. NPCRobSystem.Config.RobMoneybagModel = "models/freeman/money_sack.mdl"
  109.  
  110.  
  111. -- Should robberys be restricted to specific jobs?
  112. NPCRobSystem.Config.CanRobSpec = true
  113.  
  114.  
  115. -- What jobs can Rob the NPC?
  116. NPCRobSystem.Config.CanRobJobs = {
  117. TEAM_MOB,
  118. TEAM_GANG,
  119. TEAM_THIEF
  120. }
  121.  
  122.  
  123. -- These are the jobs that are considered Government
  124. NPCRobSystem.Config.ConsideredCops = {
  125. TEAM_MAYOR,
  126. TEAM_CHIEF,
  127. TEAM_POLICE
  128. }
  129.  
  130. -- Should the user be forced to have a weapon out when entering a robbery?
  131. NPCRobSystem.Config.ForceWeapon = false
  132.  
  133. -- If the above is true, what is considered a weapon? (class names)
  134. NPCRobSystem.Config.ForceWeaponWeapons = {
  135. "weapon_pistol",
  136. "weapon_shotgun",
  137. "weapon_357"
  138. }
  139. /*
  140. ====================================================
  141. This third section is for the shop part of the addon
  142. ====================================================
  143. */
  144.  
  145.  
  146. -- The color of the buy button IF the player can afford it
  147. NPCRobSystem.Config.ShopBuyColor = Color(0,100,100)
  148.  
  149.  
  150. -- The color of the buy button IF the player cannot afford it
  151. NPCRobSystem.Config.ShopBuyDenyColor = Color(200, 60, 60)
  152.  
  153.  
  154. -- Should the store UI slide onto the screen?
  155. NPCRobSystem.Config.AnimateUISlide = true
  156.  
  157.  
  158. -- Should the store UI stay on screen once an item is purchased?
  159. NPCRobSystem.Config.KeepUIOpen = true
  160.  
  161.  
  162. -- Should unpurchasable items show? (They'll be red)
  163. NPCRobSystem.Config.ShowUnpurchasable = true
  164.  
  165.  
  166. -- Should the models rotate?
  167. NPCRobSystem.Config.ShopModelRotate = true
  168.  
  169.  
  170. -- These are the tabs that are used in the below table
  171. NPCRobSystem.Config.ShopTabs = {
  172. [1] = { display = "Especialidades", tabcolor = Color(140,100,0) },
  173. [2] = { display = "Equipamiento", tabcolor = Color(0,130,70) },
  174. [3] = { display = "501st", tabcolor = Color(0, 0, 255) },
  175. [4] = { display = "212th", tabcolor = Color(255, 130, 0) },
  176. [5] = { display = "ST", tabcolor = Color(255, 0, 0) },
  177. [6] = { display = "41st", tabcolor = Color(0, 70, 0) },
  178. [7] = { display = "Shadowtrooper", tabcolor = Color(0, 0, 0) },
  179. [8] = { display = "327th", tabcolor = Color(149, 95, 32) },
  180. [9] = { display = "Wolfpack", tabcolor = Color(130, 130, 130) },
  181. }
  182.  
  183.  
  184. -- name, this is the display name for the item
  185. -- desc, this is the short description for the item
  186. -- ent, this is the actual entity that will be spawned
  187. -- price, this is the price for the item
  188. -- model, this is the display model for the item
  189. -- tabs, this is the tab the item will be under, use the tabs you defined above!
  190. -- isWep, is the item a weapon? By having this true, it will give the item to the players weapon slots. If false, it will spawn on the ground
  191. -- customFunction, is the item restriction system. Use this like you do DarkRP jobs
  192. -- preSpawn, this allows you to edit the entity before it spawns (player, entity)
  193. -- postSpawn, this allows you to edit the entity after it spawns (player, entity)
  194.  
  195. NPCRobSystem.Config.ShopContent = {
  196. [1] = { name = "Extintor", desc = "Apaga todo el fuego que veas!!", ent = "weapon_extinguisher", price = 0, model = "models/weapons/w_fire_extinguisher.mdl", tab = "Equipamiento", isWep = true },
  197. [2] = { name = "Prismáticos", desc = "Observa desde lejos", ent = "weapon_rpw_binoculars", price = 0, model = "models/weapons/w_binoculars_ger.mdl", tab = "Equipamiento", isWep = true },
  198. [3] = { name = "Pistola de bengalas", desc = "Lanza una bengala para avistar tu posicion", ent = "weapon_vj_flaregun", price = 0, model = "models/vj_weapons/w_flaregun.mdl", tab = "Equipamiento", isWep = true },
  199. [4] = { name = "Granada EMP", desc = "Deshabilita culquier droide", ent = "t3m4_empgrenade", price = 0, model = "models/t3m4/empprimed.mdl", tab = "Equipamiento", isWep = true },
  200.  
  201. [5] = { name = "Granada termal", desc = "Granada explosiva", ent = "zeus_thermaldet", price = 0, model = "models/star wars the force unleashed/thermal_detonator.mdl", tab = "Equipamiento", isWep = true },
  202.  
  203. [6] = { name = "Granada cegadora", desc = "Ciega a tus enemigos rápidamente", ent = "zeus_flashbang", price = 0, model = "models/zeus/w_smokegrenade1.mdl", tab = "501st", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_REX, TEAM_TTE501, TEAM_ING501, TEAM_PES501, TEAM_SGT501, TEAM_SLD501, TEAM_MED501}, ply:Team()) end}, },
  204.  
  205. [7] = { name = "Lanzagranadas", desc = "Lanza granadas termales más rápido", ent = "tfa_grenade", price = 0, model = "models/props/starwars/weapons/grenade_launcher.mdl", tab = "501st", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_REX, TEAM_TTE501, TEAM_ING501, TEAM_PES501, TEAM_SGT501, TEAM_SLD501, TEAM_MED501}, ply:Team()) end},
  206.  
  207. [8] = { name = "PDA", desc = "Revisa y analiza los datos mediante la tablet.", ent = "alydus_fortificationbuildertablet", price = 0, model = "models/nirrti/tablet/tablet_sfm.mdl", tab = "Especialidades", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_ING501, TEAM_ING212, TEAM_INGCT, TEAM_INGGC, TEAM_ING41, TEAM_ING327, TEAM_INGWF, TEAM_FIXER}, ply:Team()) end},
  208.  
  209. [9] = { name = "Llave inglesa", desc = "Repara los vehiculos.", ent = "repair_tool", price = 0, model = "models/props_c17/tools_wrench01a.mdl", tab = "Especialidades", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_ING501, TEAM_ING212, TEAM_INGCT, TEAM_INGGC, TEAM_ING41, TEAM_ING327, TEAM_INGWF, TEAM_FIXER}, ply:Team()) end},
  210.  
  211. [10] = { name = "Pirateador", desc = "Piratea puertas para poder abrirlas.", ent = "bkeycardscanner_cracker", price = 0, model = "models/props/starwars/weapons/repairkit.mdl", tab = "Especialidades", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_ING501, TEAM_ING212, TEAM_INGCT, TEAM_INGGC, TEAM_ING41, TEAM_ING327, TEAM_INGWF, TEAM_FIXER}, ply:Team()) end},
  212.  
  213. [11] = { name = "Inyector de bacta", desc = "Inyecta bacta a quien quieras.", ent = "weapon_bactainjector", price = 0, model = "models/starwars/items/bacta_small.mdl", tab = "Especialidades", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_MED501, TEAM_MED212, TEAM_MEDCT, TEAM_MEDGC, TEAM_MED41, TEAM_MED327, TEAM_MEDWF, TEAM_SEV}, ply:Team()) end},
  214.  
  215. [12] = { name = "Granada de bacta", desc = "Lanza una granada llena de bacta para curar a tus aliados.", ent = "weapon_bactanade", price = 0, model = "models/riddickstuff/bactagrenade/bactanade.mdl", tab = "Especialidades", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_MED501, TEAM_MED212, TEAM_MEDCT, TEAM_MEDGC, TEAM_MED41, TEAM_MED327, TEAM_MEDWF, TEAM_SEV}, ply:Team()) end},
  216.  
  217. [13] = { name = "Desfribilador", desc = "Reanima a tus aliados.", ent = "weapon_defibrillator", price = 0, model = "models/weapons/custom/v_defib.mdl", tab = "Especialidades", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_MED501, TEAM_MED212, TEAM_MEDCT, TEAM_MEDGC, TEAM_MED41, TEAM_MED327, TEAM_MEDWF, TEAM_SEV}, ply:Team()) end},
  218.  
  219. [14] = { name = "Lanzacohetes", desc = "Arma antivehiculos.", ent = "tfa_swch_clonelauncher_3", price = 0, model = "models/props/starwars/weapons/rep_launcher.mdl", tab = "212th", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_CODY, TEAM_CC212, TEAM_CPT212, TEAM_TTE212, TEAM_MED212, TEAM_ING212, TEAM_PES212, TEAM_SGT212, TEAM_SLD212}, ply:Team()) end},
  220.  
  221. [15] = { name = "Francotidaror", desc = "Arma a distancia.", ent = "iqa11_sniper_rifle", price = 0, model = "models/weapons/synbf3/w_a280.mdl", tab = "41st", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_GREE, TEAM_SLDGC, TEAM_SGTGC, TEAM_TTEGC, TEAM_CPTGC, TEAM_PESGC, TEAM_INGGC, TEAM_MED41, TEAM_SLD41, TEAM_SGT41, TEAM_TTE41, TEAM_CPT41, TEAM_CC41, TEAM_ING41,}, ply:Team()) end},
  222.  
  223. [16] = { name = "Esposas", desc = "Arresta a una persona.", ent = "weapon_r_handcuffs", price = 0, model = "models/tobadforyou/c_hand_cuffs.mdl", tab = "ST", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_THIRE, TEAM_CCST, TEAM_CPTST, TEAM_TTEST, TEAM_RTST, TEAM_SGTST, TEAM_SLDST}, ply:Team()) end},
  224.  
  225. [17] = { name = "Porra", desc = "Golpea a una persona.", ent = "stunstick", price = 0, model = "models/weapons/c_stunstick.mdl", tab = "ST", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_THIRE, TEAM_CCST, TEAM_CPTST, TEAM_TTEST, TEAM_RTST, TEAM_SGTST, TEAM_SLDST}, ply:Team()) end},
  226.  
  227. [18] = { name = "Granada antigas", desc = "Elimina cualquier gas tóxico.", ent = "weapon_bacta_grenade", price = 0, model = "models/zeus/w_smokegrenade2.mdl", tab = "327th", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_ARC327, TEAM_CC327, TEAM_CPT327, TEAM_TTE327, TEAM_MED327, TEAM_ING327, TEAM_PES327, TEAM_SGT327, TEAM_SLD327}, ply:Team()) end},
  228.  
  229. [19] = { name = "Granada de gas", desc = "Libera un gas tóxico.", ent = "weapon_shadowvirus_grenade", price = 0, model = "models/zeus/w_smokegrenade2.mdl", tab = "327th", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_ARC327, TEAM_CC327, TEAM_CPT327, TEAM_TTE327, TEAM_MED327, TEAM_ING327, TEAM_PES327, TEAM_SGT327, TEAM_SLD327}, ply:Team()) end},
  230.  
  231. [20] = { name = "Gancho", desc = "Enganchate en cualquier supeficie.", ent = "realistic_hook", price = 0, model = "models/weapons/c_pistol.mdl", tab = "Equipamiento", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_REX, TEAM_CODY, TEAM_CC212, TEAM_THIRE, TEAM_CCST, TEAM_CCCT, TEAM_GREE, TEAM_CC41, TEAM_RC, TEAM_SORCH, TEAM_SEV, TEAM_BOSS, TEAM_FIXER, TEAM_ARC501, TEAM_ARC41, TEAM_ARC212, TEAM_ARCCT, TEAM_ARCST, TEAM_CC327, TEAM_CPT327, TEAM_TTE327, TEAM_MED327, TEAM_ING327, TEAM_PES327, TEAM_SGT327, TEAM_SLD327,
  232. TEAM_ARCWF, TEAM_WOLFFE, TEAM_CCWF, TEAM_CPTWF, TEAM_TTEWF, TEAM_MEDWF, TEAM_INGWF, TEAM_PESWF, TEAM_SGTWF, TEAM_SLDWF }, ply:Team()) end},
  233.  
  234. [21] = { name = "Jetpack", desc = "Vuela con la mochila propulsora.", ent = "sneakyjetpack", price = 0, model = "models/themexicanjew/jetpack.mdl", tab = "Equipamiento", isWep = false, customCheck = function(ply) return table.HasValue({ TEAM_REX, TEAM_CODY, TEAM_ARC501, TEAM_ARC41, TEAM_ARC212, TEAM_ARCCT, TEAM_ARCST,
  235. TEAM_ARCWF, TEAM_WOLFFE, TEAM_CCWF, TEAM_CPTWF, TEAM_TTEWF, TEAM_MEDWF, TEAM_INGWF, TEAM_PESWF, TEAM_SGTWF, TEAM_SLDWF}, ply:Team()) end},
  236.  
  237. [22] = { name = "Armadura de camuflaje", desc = "Vuelvete invisible.", ent = "weapon_camo", price = 0, model = "models/banks/regimentarc/211thshadow/211thshadow.mdl", tab = "Shadowtrooper", isWep = true, customCheck = function(ply) return table.HasValue({ TEAM_ARC327, TEAM_CC327, TEAM_CPT327, TEAM_TTE327, TEAM_MED327, TEAM_ING327, TEAM_PES327, TEAM_SGT327, TEAM_SLD327}, ply:Team()) end},
  238. }
Add Comment
Please, Sign In to add comment