Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ERROR] addons/npcstorerob/lua/entities/storerob_corenpc/cl_init.lua:19: attempt to index field 'Config' (a nil value)
- 1. unknown - addons/npcstorerob/lua/entities/storerob_corenpc/cl_init.lua:19
- 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/Humans/Group01/male_07.mdl"
- -- NPC Text
- NPCRobSystem.Config.NPCText = "General Store"
- -- 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 = true
- -- 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 = 30000
- -- The amount of time it takes to rob the NPC
- NPCRobSystem.Config.RobTime = 110
- -- The amount of time it takes for the store to be robable again
- NPCRobSystem.Config.RobCoodownTime = 300
- -- 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.0
- -- How many players are needed on the server for the store to be robable?
- NPCRobSystem.Config.RobPlayerAmount = 4
- -- 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,
- TEAM_DRUG
- }
- -- These are the jobs that are considered Government
- NPCRobSystem.Config.ConsideredCops = {
- TEAM_MAYOR,
- TEAM_CHIEF,
- TEAM_POLICEDEPT,
- TEAM_SECRETSERVICE,
- TEAM_POLICE1,
- TEAM_POLICE2,
- TEAM_POLICE3,
- TEAM_POLICE4,
- TEAM_POLICE5,
- TEAM_POLICE6,
- TEAM_POLICE7,
- TEAM_POLICE8,
- TEAM_POLICE9,
- }
- /*
- ====================================================
- 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 = false
- -- Should the models rotate?
- NPCRobSystem.Config.ShopModelRotate = true
- -- These are the tabs that are used in the below table
- NPCRobSystem.Config.ShopTabs = {
- [1] = { display = "Weapons", tabcolor = Color(140,100,0) },
- [2] = { display = "VIP", tabcolor = Color(200,183,0) }
- }
- -- 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
- NPCRobSystem.Config.ShopContent = {
- [1] = { name = "AK-74", desc = "Blow them all away", ent = "cw_ak74", price = 4000, model = "models/weapons/w_rif_ak47.mdl", tab = "Weapons", isWep = true },
- [2] = { name = "AR-15", desc = "Best gun ever", ent = "cw_ar15", price = 6000, model = "models/weapons/w_rif_m4a1.mdl", tab = "Weapons", isWep = true },
- [3] = { name = "PM", desc = "Pistol", ent = "cw_makarov", price = 3000, model = "models/cw2/pistols/w_makarov.mdl", tab = "Weapons", isWep = true },
- [4] = { name = "P99", desc = "Best Pistol on the market", ent = "cw_p99", price = 5000, model = "models/cw2/pistols/p99.mdl", tab = "Weapons", isWep = true },
- [5] = { name = "FN SCAR-H", desc = "Protect your Home", ent = "cw_scarh", price = 6000, model
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement