Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ENT.Base = "base_ai"
- ENT.Type = "ai"
- ENT.PrintName = "NPC Shop"
- ENT.Author = "Crap-Head"
- --[[
- Below is the table of items for the NPC shop.
- Customize the list below to add new items. Make sure you follow the instructions correctly.
- Example item. Explenation of what each "table" does.
- NPCShop_Items["item_glock"] = { -- This does not display anywhere, but is used by the server, as well as the client to purchase the item. Make sure this is unique on all items.
- Name = "Glock 18", -- The name of the item.
- Description = "Small pistol. Deals alright damage to your enemy.", -- The description of the item. This supports multilines.
- Model = "models/weapons/w_pist_glock18.mdl", -- The display model.
- Price = 400, -- The price of the item.
- BuyFunction = -- This is what happens when you purchase the weapon. Having a bit of lua knownledge is a huge bonus here, but you can make items rather simple, even if you don't know anything about lua.
- function(ply,item)
- ply:Give("weapon_glock2") -- This is what you want to edit. This item gives the player (ply), a glock (weapon_glock2, darkrp name of the weapon entity). Other items below gives the player health, or armor. Anything can be done with the items.
- end,
- }
- --]]
- NPCShop_Items = {}
- NPCShop_Items["weapon_vape"] = { -- This does not display anywhere, but is used by the server, as well as the client to purchase the item. Make sure this is unique on all items.
- Name = "Normal Vape", -- The name of the item.
- Description = "Go green", -- The description of the item. This supports multilines.
- Model = "models/swamponions/vape.mdl", -- The display model.
- Price = 5000, -- The price of the item.
- BuyFunction = -- This is what happens when you purchase the weapon. Having a bit of lua knownledge is a huge bonus here, but you can make items rather simple, even if you don't know anything about lua.
- function(ply,item)
- ply:Give("weapon_vape") -- This is what you want to edit. This item gives the player (ply), a glock (weapon_glock2, darkrp name of the weapon entity). Other items below gives the player health, or armor. Anything can be done with the items.
- end,
- }
- NPCShop_Items["weapon_vape_golden"] = { -- This does not display anywhere, but is used by the server, as well as the client to purchase the item. Make sure this is unique on all items.
- Name = "Golden Vape", -- The name of the item.
- Description = "Gold is really worth", -- The description of the item. This supports multilines.
- Model = "models/swamponions/vape.mdl", -- The display model.
- Price = 5500, -- The price of the item.
- BuyFunction = -- This is what happens when you purchase the weapon. Having a bit of lua knownledge is a huge bonus here, but you can make items rather simple, even if you don't know anything about lua.
- function(ply,item)
- ply:Give("weapon_vape_golden") -- This is what you want to edit. This item gives the player (ply), a glock (weapon_glock2, darkrp name of the weapon entity). Other items below gives the player health, or armor. Anything can be done with the items.
- end,
- }
- NPCShop_Items["weapon_vape_custom"] = { -- This does not display anywhere, but is used by the server, as well as the client to purchase the item. Make sure this is unique on all items.
- Name = "Custom Vape", -- The name of the item.
- Description = "Costumize your vape", -- The description of the item. This supports multilines.
- Model = "models/swamponions/vape.mdl", -- The display model.
- Price = 10000, -- The price of the item.
- BuyFunction = -- This is what happens when you purchase the weapon. Having a bit of lua knownledge is a huge bonus here, but you can make items rather simple, even if you don't know anything about lua.
- function(ply,item)
- ply:Give("weapon_vape_custom") -- This is what you want to edit. This item gives the player (ply), a glock (weapon_glock2, darkrp name of the weapon entity). Other items below gives the player health, or armor. Anything can be done with the items.
- end,
- }
- NPCShop_Items["weapon_vape_butterfly"] = { -- This does not display anywhere, but is used by the server, as well as the client to purchase the item. Make sure this is unique on all items.
- Name = "Butterfly Vape", -- The name of the item.
- Description = "Ninja poweeer", -- The description of the item. This supports multilines.
- Model = "models/swamponions/vape.mdl", -- The display model.
- Price = 6500, -- The price of the item.
- BuyFunction = -- This is what happens when you purchase the weapon. Having a bit of lua knownledge is a huge bonus here, but you can make items rather simple, even if you don't know anything about lua.
- function(ply,item)
- ply:Give("weapon_vape_butterfly") -- This is what you want to edit. This item gives the player (ply), a glock (weapon_glock2, darkrp name of the weapon entity). Other items below gives the player health, or armor. Anything can be done with the items.
- end,
- }
- NPCShop_Items["weapon_vape_american"] = { -- This does not display anywhere, but is used by the server, as well as the client to purchase the item. Make sure this is unique on all items.
- Name = "American Vape", -- The name of the item.
- Description = "AMERICAAAAA!!", -- The description of the item. This supports multilines.
- Model = "models/swamponions/vape.mdl", -- The display model.
- Price = 7500, -- The price of the item.
- BuyFunction = -- This is what happens when you purchase the weapon. Having a bit of lua knownledge is a huge bonus here, but you can make items rather simple, even if you don't know anything about lua.
- function(ply,item)
- ply:Give("weapon_vape_american") -- This is what you want to edit. This item gives the player (ply), a glock (weapon_glock2, darkrp name of the weapon entity). Other items below gives the player health, or armor. Anything can be done with the items.
- end,
- }
- NPCShop_Items["weapon_vape_hallucinogenic"] = { -- This does not display anywhere, but is used by the server, as well as the client to purchase the item. Make sure this is unique on all items.
- Name = "Hallucinogenic Vape", -- The name of the item.
- Description = "I feel really bad", -- The description of the item. This supports multilines.
- Model = "models/swamponions/vape.mdl", -- The display model.
- Price = 9000, -- The price of the item.
- BuyFunction = -- This is what happens when you purchase the weapon. Having a bit of lua knownledge is a huge bonus here, but you can make items rather simple, even if you don't know anything about lua.
- function(ply,item)
- ply:Give("weapon_vape_hallucinogenic") -- This is what you want to edit. This item gives the player (ply), a glock (weapon_glock2, darkrp name of the weapon entity). Other items below gives the player health, or armor. Anything can be done with the items.
- end,
- }
- NPCShop_Items["weapon_vape_juicy"] = { -- This does not display anywhere, but is used by the server, as well as the client to purchase the item. Make sure this is unique on all items.
- Name = "Juicy Vape", -- The name of the item.
- Description = "You need some vitamins", -- The description of the item. This supports multilines.
- Model = "models/swamponions/vape.mdl", -- The display model.
- Price = 6000, -- The price of the item.
- BuyFunction = -- This is what happens when you purchase the weapon. Having a bit of lua knownledge is a huge bonus here, but you can make items rather simple, even if you don't know anything about lua.
- function(ply,item)
- ply:Give("weapon_vape_juicy") -- This is what you want to edit. This item gives the player (ply), a glock (weapon_glock2, darkrp name of the weapon entity). Other items below gives the player health, or armor. Anything can be done with the items.
- end,
- }
- NPCShop_Items["weapon_vape_medicinal"] = { -- This does not display anywhere, but is used by the server, as well as the client to purchase the item. Make sure this is unique on all items.
- Name = "Medicinal Vape", -- The name of the item.
- Description = "Make yourself 100% healed person", -- The description of the item. This supports multilines.
- Model = "models/swamponions/vape.mdl", -- The display model.
- Price = 75000, -- The price of the item.
- BuyFunction = -- This is what happens when you purchase the weapon. Having a bit of lua knownledge is a huge bonus here, but you can make items rather simple, even if you don't know anything about lua.
- function(ply,item)
- ply:Give("weapon_vape_medicinal") -- This is what you want to edit. This item gives the player (ply), a glock (weapon_glock2, darkrp name of the weapon entity). Other items below gives the player health, or armor. Anything can be done with the items.
- end,
- function(ply)
- if not ply:GetUserGroup() == "Owner" or ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "Head Admin" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "Community Manager" then
- BuyItem:SetDisabled ( true )
- BuyItem:SetToolTip("This Vape is only for Donators!")
- else
- BuyItem:SetDisabled ( false )
- end
- end,
- }
- NPCShop_Items["weapon_vape_mega"] = { -- This does not display anywhere, but is used by the server, as well as the client to purchase the item. Make sure this is unique on all items.
- Name = "Mega Vape", -- The name of the item.
- Description = "Big smoke comming out", -- The description of the item. This supports multilines.
- Model = "models/swamponions/vape.mdl", -- The display model.
- Price = 50000, -- The price of the item.
- BuyFunction = -- This is what happens when you purchase the weapon. Having a bit of lua knownledge is a huge bonus here, but you can make items rather simple, even if you don't know anything about lua.
- function(ply,item)
- ply:Give("weapon_vape_mega") -- This is what you want to edit. This item gives the player (ply), a glock (weapon_glock2, darkrp name of the weapon entity). Other items below gives the player health, or armor. Anything can be done with the items.
- end,
- function(ply)
- if not ply:GetUserGroup() == "Owner" or ply:GetUserGroup() == "Donator" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "Head Admin" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "Community Manager" then
- BuyItem:SetDisabled ( true )
- BuyItem:SetToolTip("This Vape is only for Donators!")
- else
- BuyItem:SetDisabled ( false )
- end
- end,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement