Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NPCRobSystem.Config = {}
- -- If you run into any issues and the addon throws errors at you, contact me through a support ticket, or add me on steam.
- /*
- ====================================================
- This first section is for the core side of the addon
- ====================================================
- */
- -- NPC Model
- NPCRobSystem.Config.NPCModel = "models/props/starwars/tech/gonk_droid.mdl"
- -- NPC Text
- NPCRobSystem.Config.NPCText = "Armeria"
- -- The ULX groups that have access to the "savestorerob" command
- NPCRobSystem.Config.SaveComGroup = {
- ["superadmin"] = true,
- ["admin"] = true
- }
- -- The prefix in chat for the store actions
- NPCRobSystem.Config.StorePrefix = "[NPC Shop]"
- -- The color of the prefix in chat for the store actions
- NPCRobSystem.Config.StorePrefixColor = Color( 210, 195, 20 )
- -- The prefix in chat for the robbery actions
- NPCRobSystem.Config.RobPrefix = "[NPC Robbing]"
- -- The color of the prefix in chat for the robbery actions
- NPCRobSystem.Config.RobPrefixColor = Color( 20, 195, 210 )
- -- The font used throughout the addon
- NPCRobSystem.Config.Font = "Calibri"
- /*
- ========================================================
- This second section is for the robbery side of the addon
- ========================================================
- */
- -- Should the store be robable?
- NPCRobSystem.Config.RobberySystem = false
- -- How much does the NPC get robbed for?
- -- Advanced forumlas are accepted, for example:
- -- 1000 * #player.GetAll() | This times the amout of players by 1,000
- -- However static numbers also work
- NPCRobSystem.Config.RobAmount = 2000
- -- The amount of time it takes to rob the NPC
- NPCRobSystem.Config.RobTime = 20
- -- The amount of time it takes for the store to be robable again
- NPCRobSystem.Config.RobCoodownTime = 90
- -- What % of players need to be Government for the store to be robable? (Must be a decimal, e.g: 0.2 would be 20%)
- NPCRobSystem.Config.RobGovernmentAmount = 0.2
- -- How many players are needed on the server for the store to be robable?
- NPCRobSystem.Config.RobPlayerAmount = 5
- -- Max distance the robber is allowed away from the NPC while robbing it
- NPCRobSystem.Config.RobMaxDistance = 500
- -- How often does the npc call for help? Between 1 and x
- NPCRobSystem.Config.RobShouttime = 45
- -- This is the animation that is used while the NPC is being robbed
- -- For a list of all the usable ainimations, go to: https://pastebin.com/7Ezumawk
- NPCRobSystem.Config.RobActiveAni = "cower_Idle"
- -- Should the NPC play an alarm while being robbed?
- NPCRobSystem.Config.RobAlarmActive = true
- -- This is the alarm sound that is used while the NPC is being robbed
- -- For a list of all the usable sounds, go to: https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8f77.html
- NPCRobSystem.Config.RobAlarmDir = "ambient/alarms/alarm1.wav"
- -- Use the moneybag system? This system drops a money bag instead of giving it straight to the user
- NPCRobSystem.Config.RobMoneybagSystem = true
- -- The model of the "money bag" that will drop
- NPCRobSystem.Config.RobMoneybagModel = "models/freeman/money_sack.mdl"
- -- Should robberys be restricted to specific jobs?
- NPCRobSystem.Config.CanRobSpec = true
- -- What jobs can Rob the NPC?
- NPCRobSystem.Config.CanRobJobs = {
- TEAM_MOB,
- TEAM_GANG,
- TEAM_THIEF
- }
- -- These are the jobs that are considered Government
- NPCRobSystem.Config.ConsideredCops = {
- TEAM_MAYOR,
- TEAM_CHIEF,
- TEAM_POLICE
- }
- -- Should the user be forced to have a weapon out when entering a robbery?
- NPCRobSystem.Config.ForceWeapon = false
- -- If the above is true, what is considered a weapon? (class names)
- NPCRobSystem.Config.ForceWeaponWeapons = {
- "weapon_pistol",
- "weapon_shotgun",
- "weapon_357"
- }
- /*
- ====================================================
- This third section is for the shop part of the addon
- ====================================================
- */
- -- The color of the buy button IF the player can afford it
- NPCRobSystem.Config.ShopBuyColor = Color(0,100,100)
- -- The color of the buy button IF the player cannot afford it
- NPCRobSystem.Config.ShopBuyDenyColor = Color(200, 60, 60)
- -- Should the store UI slide onto the screen?
- NPCRobSystem.Config.AnimateUISlide = true
- -- Should the store UI stay on screen once an item is purchased?
- NPCRobSystem.Config.KeepUIOpen = true
- -- Should unpurchasable items show? (They'll be red)
- NPCRobSystem.Config.ShowUnpurchasable = true
- -- Should the models rotate?
- NPCRobSystem.Config.ShopModelRotate = true
- -- These are the tabs that are used in the below table
- NPCRobSystem.Config.ShopTabs = {
- [1] = { display = "Especialidades", tabcolor = Color(140,100,0) },
- [2] = { display = "Equipamiento", tabcolor = Color(0,130,70) },
- [3] = { display = "501st", tabcolor = Color(0, 0, 255) },
- [4] = { display = "212th", tabcolor = Color(255, 130, 0) },
- [5] = { display = "ST", tabcolor = Color(255, 0, 0) },
- [6] = { display = "41st", tabcolor = Color(0, 70, 0) },
- [7] = { display = "Shadowtrooper", tabcolor = Color(0, 0, 0) },
- [8] = { display = "327th", tabcolor = Color(149, 95, 32) },
- [9] = { display = "Wolfpack", tabcolor = Color(130, 130, 130) },
- }
- -- name, this is the display name for the item
- -- desc, this is the short description for the item
- -- ent, this is the actual entity that will be spawned
- -- price, this is the price for the item
- -- model, this is the display model for the item
- -- tabs, this is the tab the item will be under, use the tabs you defined above!
- -- 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
- -- customFunction, is the item restriction system. Use this like you do DarkRP jobs
- -- preSpawn, this allows you to edit the entity before it spawns (player, entity)
- -- postSpawn, this allows you to edit the entity after it spawns (player, entity)
- NPCRobSystem.Config.ShopContent = {
- [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 },
- [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 },
- [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 },
- [4] = { name = "Granada EMP", desc = "Deshabilita culquier droide", ent = "t3m4_empgrenade", price = 0, model = "models/t3m4/empprimed.mdl", tab = "Equipamiento", isWep = true },
- [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 },
- [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}, },
- [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},
- [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},
- [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},
- [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},
- [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},
- [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},
- [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},
- [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},
- [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},
- [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},
- [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},
- [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},
- [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},
- [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,
- TEAM_ARCWF, TEAM_WOLFFE, TEAM_CCWF, TEAM_CPTWF, TEAM_TTEWF, TEAM_MEDWF, TEAM_INGWF, TEAM_PESWF, TEAM_SGTWF, TEAM_SLDWF }, ply:Team()) end},
- [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,
- TEAM_ARCWF, TEAM_WOLFFE, TEAM_CCWF, TEAM_CPTWF, TEAM_TTEWF, TEAM_MEDWF, TEAM_INGWF, TEAM_PESWF, TEAM_SGTWF, TEAM_SLDWF}, ply:Team()) end},
- [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},
- }
Add Comment
Please, Sign In to add comment