Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- DO NOT TOUCH THIS SHIT??
- ENT.Type = "anim";
- ENT.Base = "omnishop_npcbase";
- ENT.Type = "ai";
- ENT.PrintName = "OmniShop NPC";
- ENT.Author = "Pat";
- -- You can touch now
- -- Config
- -- What model do you want the NPC to be?
- ENT.model = "models/Humans/Group03/Male_04.mdl";
- --[[
- [categoryId (ONLY NUMBERS)] = { -- lowest number = the first (from left -> right)
- catName = "Category" -- category name
- { -- start of new item
- model = true, -- if true then we use a model, otherwise we use a image (material)
- img = "path", -- if model is true then we use a model path, otherwise we use a material path.
- price = 10, -- how much does it cost to buy?
- name = "name", -- name of item
- desc = "desc", -- description for the item
- func = function, -- refer to a OmniShop.funcs function.
- reward = "reward", -- what reward? Either a "string" or a number. For food/props this is the model.
- vip = true, -- true/false. VIP (donator) item or not
- level = 10, -- what level should be required to buy this item?
- allowedTeams = {
- TEAM_CITIZEN,
- TEAM_CIVILPROTECTION
- }, -- what teams is allowed to buy this?
- wrongTeamMsg = "Only Citizens/CPs!", -- message in menu/notification if they cant buy it because of their team.
- energy = 20 -- how much energy does it food give?
- }
- }, -- end of item
- },
- Default funcs you can refer to is
- OmniShop.funcs.buyGun
- OmniShop.funcs.buyRank
- OmniShop.funcs.buyHealth
- OmniShop.funcs.buyArmor
- OmniShop.funcs.buyPS1Points
- OmniShop.funcs.buyPS1Item
- OmniShop.funcs.buyPS2StandardPoints
- OmniShop.funcs.buyPS2PremiumPoints
- OmniShop.funcs.buyPS2Item
- OmniShop.funcs.buyExperience
- OmniShop.funcs.buyLevel
- OmniShop.funcs.buyFood
- OmniShop.funcs.buyProp
- OmniShop.funcs.buyEntity
- To create more functions go to:
- garrysmod/addons/omni_shop/lua/omnishop/item_functions.lua
- ]]
- ENT.config = {
- [1] = {
- catName = "Gun Dealer";
- {
- model = true;
- img = "models/weapons/w_colt_python.mdl";
- price = 1200;
- name = "Python";
- desc = "Robert's";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_coltpython";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/s_dmgf_co1911.mdl";
- price = 1500;
- name = "Python";
- desc = "Got";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_colt1911";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_luger_p08.mdl";
- price = 1000;
- name = "Luger";
- desc = "A";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_luger";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_hk45c.mdl";
- price = 1500;
- name = "Hk45c";
- desc = "Quick";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_hk45";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_sw_model_500.mdl";
- price = 5500;
- name = "S&W 500";
- desc = "Hand";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_model500";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_m29_satan.mdl";
- price = 6660;
- name = "M29 Satan";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_m29satan";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_beretta_m92.md";
- price = 1400;
- name = "Baretta";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_m92baretta";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_model_3_rus.mdl";
- price = 4000;
- name = "S&W Model 3 Russian";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_model3russian";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_masada_acr.mdl";
- price = 4000;
- name = "Acr";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_acr";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_amd_65.mdl";
- price = 5000;
- name = "AMD 65";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_amd65";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_fn_fal.mdl";
- price = 5500;
- name = "FN FAL";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_fal";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_snip_m14sp.mdl";
- price = 5000;
- name = "M14";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_m9k_m14sp";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_dmg_m16ag.mdl";
- price = 5700;
- name = "M16 Scoped Single";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_m16a4_acog";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_hk_416.mdl";
- price = 5000;
- name = "HK 16";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_m416";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_fn_scar_h.mdl";
- price = 7000;
- name = "M29 Scar";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_scar";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_imi_tar21.mdl";
- price = 5000;
- name = "TAR-21";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_tar21";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_dmg_vally.mdl";
- price = 5500;
- name = "Val";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_val";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_dmg_vikhr.mdl";
- price = 5000;
- name = "SR-3M Vikhrz";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_vikhr";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_winchester_1887.mdl";
- price = 6000;
- name = "1887 Winchester";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_1887winchester";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_double_barrel_shotgun.mdl";
- price = 10000;
- name = "Double Barrel";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_dbarrel";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_pancor_jackhammer.mdl";
- price = 8000;
- name = "Jack Hammer";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_jackhammer";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_striker_12g.mdl";
- price = 9000;
- name = "Striker 12";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_striker12";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_winchester_1873.mdl";
- price = 4000;
- name = "Winchester 73";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_winchester73";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_benelli_m3.mdl";
- price = 6000;
- name = "Benelli M3";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_m3";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_ithaca_m37.mdl";
- price = 7000;
- name = "Ithaca M37";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_ithacam37";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_mossberg_590.mdl";
- price = 7000;
- name = "Mossberg";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_mossberg590";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_barret_m82.mdl";
- price = 12000;
- name = "Barret M82";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_barret_m82";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_barrett_m98b.mdl";
- price = 11000;
- name = "Barret M98B";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_m29satan";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_svt_40.mdl";
- price = 11000;
- name = "SVT 40";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_svt40";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_dragunov_svu.mdl";
- price = 12000;
- name = "Dragunov SVU";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_svu";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_svd_dragunov.mdl";
- price = 13000;
- name = "SVD Dragunov";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_dragunov";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_snp_int.mdl";
- price = 14000;
- name = "Intervention";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_intervention";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_hk_psg1.mdl";
- price = 9000;
- name = "PSG-1";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_psg1";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_fg42.mdl";
- price = 6000;
- name = "FG42";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_fg42";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_m60_machine_gun.mdl";
- price = 9000;
- name = "M60";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_m60";
- vip = false;
- },
- };
- [3] = {
- catName = "Black Market Dealer";
- {
- model = true;
- img = "models/weapons/w_sb.mdl";
- price = 500000;
- name = "C4";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "destructive_c4";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/v_rif_akmp.mdl";
- price = 85000;
- name = "AK Beast";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "ak47_beast";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/v_snip_xxbow.mdl";
- price = 100000;
- name = "Crossbow";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "scout_xbow";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_smg_lmp.mdl";
- price = 90000;
- name = "AR-1 Guitar";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m4_guitar";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/v_rl7.mdl";
- price = 1000000000;
- name = "Davy Crocket";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_davy_crockett";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_m61_fraggynade.mdl";
- price = 25000;
- name = "Frag Grenade";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_m61_frag";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_sticky_grenade.mdl";
- price = 50000;
- name = "Sticky Grenade";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_sticky_grenade";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_acc_int_aw50.mdl";
- price = 5000000;
- name = "Skullsmasher";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "skullsmasher";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_knife_t.mdl";
- price = 5000;
- name = "Lockpick";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "pro_lockpick_update";
- vip = false;
- },
- {
- model = true;
- img = "couldn't find";
- price = 85000;
- name = "Mosin";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "grub_ro_mosin";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/v_smg_ppsh1.mdl";
- price = 90000;
- name = "PPSH";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "grub_ro_ppsh_stick";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_c4.mdl";
- price = 150000;
- name = "PTRS";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "m9k_m29satan";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/v_sanctum2_ar.mdl";
- price = 150000;
- name = "Sanctum Rifle";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "sanctum2_ar";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/v_sanctum2_sg.mdl";
- price = 160000;
- name = "Sanctum Shotgun";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "sanctum2_sg";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/v_sanctum2_smg.mdl";
- price = 130000;
- name = "Sanctum SMG";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "sanctum2_smg";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/v_sanctum2_sr.mdl";
- price = 180000;
- name = "Sanctum Sniper";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "sanctum2_sr";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/v_sanctum2_tr.mdl";
- price = 170000;
- name = "Sanctum TR";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "sanctum2_tr";
- vip = false;
- },
- {
- model = true;
- img = "models/serioussam2/weapons/w_autoshotgun.mdl";
- price = 150000;
- name = "Sam AutoShotty";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_ss2_autoshotgun";
- vip = false;
- },
- {
- model = true;
- img = "models/serioussam2/weapons/w_colt.mdl";
- price = 120000;
- name = "Sam Colt";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_ss2_colt";
- vip = false;
- },
- {
- model = true;
- img = "models/serioussam2/weapons/w_doubleshotgun.mdl";
- price = 180000;
- name = "Sam Double Shotty";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_ss2_doubleshotgun";
- vip = false;
- },
- {
- model = true;
- img = "models/serioussam2/weapons/w_circularsaw.mdl";
- price = 100000;
- name = "Sam Chainsaw";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_ss2_circularsaw";
- vip = false;
- },
- {
- model = true;
- img = "models/serioussam2/weapons/w_cannon.mdl";
- price = 1000000;
- name = "Sam Cannon";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_ss2_cannon";
- vip = false;
- },
- {
- model = true;
- img = "models/serioussam2/weapons/w_uzi.mdl";
- price = 160000;
- name = "Sam Uzi";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_ss2_uzi";
- vip = false;
- },
- {
- model = true;
- img = "models/serioussam2/weapons/w_grenadelauncher.mdl";
- price = 160000;
- name = "Sam Plasma Rifle";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_ss2_plasmarifle";
- vip = false;
- },
- {
- model = true;
- img = "models/serioussam2/weapons/v_minigun.mdl";
- price = 300000;
- name = "Sam Minigun";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_ss2_minigun";
- vip = false;
- },
- {
- model = true;
- img = "models/serioussam2/weapons/v_rocketlauncher.mdl";
- price = 500000;
- name = "Sam RPG";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_ss2_rocketlauncher";
- vip = false;
- },
- {
- model = true;
- img = "models/weapons/w_knife_t.mdl";
- price = 100000;
- name = "Shadow Knife";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "shadow_knife";
- vip = false;
- },
- };
- [2] = {
- catName = "High Tech Dealer (VIP)";
- {
- model = true;
- img = "models/haloreach/weapons/dmr.mdl";
- price = 300000;
- name = "DMR";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "hr_swep_dmr";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/m45_tactical_shotgun.mdl";
- price = 600000;
- name = "Halo Shotgun";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "hr_swep_shotgun";
- vip = True;
- },
- {
- model = true;
- img = "models/haloreach/weapons/assault_from_reach.mdl";
- price = 600000;
- name = "Halo AR";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "hr_swep_assault_rifle";
- vip = True;
- },
- {
- model = true;
- img = "models/haloreach/m6g_magnum/magnum.mdl";
- price = 150000;
- name = "Halo Magnum";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "hr_swep_magnum";
- vip = True;
- },
- {
- model = true;
- img = "models/haloreach/weapons/dmr.mdl";
- price = 600000;
- name = "Needle Rifle";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "hr_swep_needle_rifle";
- vip = True;
- },
- {
- model = true;
- img = "models/covenant/needler.mdl";
- price = 500000;
- name = "Needler";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "hr_swep_needler";
- vip = True;
- },
- {
- model = true;
- img = "models/prifle.mdl";
- price = 500000;
- name = "Halo Plasma Rifle";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "hr_swep_plasma_rifle";
- vip = True;
- },
- {
- model = true;
- img = "models/spartanlasero.mdl";
- price = 3000000;
- name = "Spartan Laser";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "hr_swep_spartan_laser";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/w_pistol.mdl";
- price = 300000;
- name = "Energy Sword";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "halo_weapon_h4_sword";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/synbf3/v_a280.mdl";
- price = 40000;
- name = "A280";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_752bf3_a280";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/synbf3/v_dh17.mdl";
- price = 60000;
- name = "DH17";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_752bf3_dh17";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/synbf3/v_dl44.mdl";
- price = 50000;
- name = "DLT20A";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_752bf3_dl44";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/synbf3/v_e11.mdl";
- price = 50000;
- name = "E11";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_752bf3_e11";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/synbf3/v_ee3.mdlq";
- price = 30000;
- name = "EE3";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_752bf3_ee3";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/synbf3/v_rt97c.mdl";
- price = 40000;
- name = "RT97C";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_752bf3_rt97c";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/synbf3/v_scoutblaster.mdl";
- price = 10000;
- name = "Scout Blaster";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_752bf3_scoutblaster";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/synbf3/v_se14c.mdl";
- price = 50000;
- name = "SE14C";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_752bf3_se14c";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/synbf3/v_t21.mdl";
- price = 60000;
- name = "T21";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_752bf3_t21";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/w_pistol.mdl";
- price = 50000;
- name = "lightsaber";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_lightsaber";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/w_pistol.mdl";
- price = 50000;
- name = "Laser Pistol";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_laserpistol";
- vip = True;
- },
- {
- model = true;
- img = "models/weapons/w_pistol.mdl";
- price = 3000000;
- name = "Laser Minigun";
- desc = "He'll";
- func = OmniShop.funcs.buyGun;
- reward = "weapon_lasermgun";
- vip = True;
- },
- };
- };
- -- VIP groups.
- -- The first group written down here is the rank that the will error message will show.
- ENT.vipGroups = {
- ["admin"] = { vip = false, modifier = 2 }; -- CUZ YOU HATE YOUR ADMINS!
- ["donator"] = { vip = true, modifier = 0.90 };
- ["superdonator"] = { vip = true, modifier = 0.75 };
- ["superadmin"] = { vip = true, modifier = 0.50 };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement