Advertisement
Guest User

Untitled

a guest
Oct 1st, 2022
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.97 KB | None | 0 0
  1. zpn = zpn or {}
  2. zpn.config = zpn.config or {}
  3. zpn.config.Shop = {}
  4. local function AddItem(data) return table.insert(zpn.config.Shop,data) end
  5.  
  6. AddItem({
  7.  
  8.     /*
  9.         1 = Entity
  10.         2 = Weapon
  11.         3 = Health
  12.         4 = Armor
  13.         5 = SH Accessory HatID https://www.gmodstore.com/market/view/3781
  14.         6 = Pointshop01 Points https://github.com/adamdburton/pointshop
  15.         7 = Pointshop02 StandardPoints https://github.com/Kamshak/Pointshop2
  16.         8 = Pointshop02 PremiumPoints https://github.com/Kamshak/Pointshop2
  17.         9 = Blues Unboxing 3 https://www.gmodstore.com/market/view/5306
  18.         10 = Underdone https://www.gmodstore.com/market/view/750
  19.         11 = EasySkins
  20.         12 = mTokens
  21.         13 = ASS https://www.gmodstore.com/market/view/advanced-accessory-the-most-advanced-accessory-system
  22.  
  23.         14 = SantosRP - GiveItem (.class,.amount)
  24.         15 = WOS - Item
  25.         16 = WOS - Points
  26.         17 = WOS - XP
  27.         18 = WOS - Level
  28.         19 = Vrondakis - XP
  29.         20 = Vrondakis - Level
  30.         21 = Glorified - XP
  31.         22 = Glorified - Level
  32.         23 = Essentials - XP
  33.         24 = Essentials - Level
  34.         25 = Elite - XP
  35.         26 = sReward - Tokens
  36.         27 = ZerosPyrocrafter 2 - PyroCoins
  37.         28 = LUA
  38.     */
  39.  
  40.     // What kind of item is this?
  41.     type = 1,
  42.  
  43.     // The Entity / Weapon Class / HatID / UB3ID / ItemID
  44.     class = "item_ammo_pistol",
  45.  
  46.     // The Item name
  47.     name = "Pistol Ammo",
  48.  
  49.     // Some info about this item
  50.     desc = "Holds some pistol ammo!",
  51.  
  52.     // The path to Model
  53.     model = "models/Items/BoxSRounds.mdl",
  54.  
  55.     // The Field of view for displaying the model (Usefull if the model is very small)
  56.     model_fov = 25,
  57.  
  58.     // The Skin for the Model
  59.     model_skin = 0,
  60.  
  61.     // The path to the png icon, set to nil to use the model instead
  62.     icon = nil,
  63.  
  64.     // The Price
  65.     price = 15,
  66.  
  67.     // How much should we give the player? (Used for stuff like Health, Armor, Points)
  68.     amount = 1,
  69.  
  70.     // Can be used to overwrite the item color
  71.     color = zpn.Theme.Shop.itm_bg_color,
  72.  
  73.     // What ranks are allowed to buy this item? Leave empty to allowe everyone to buy it.
  74.     ranks = {},
  75.  
  76.     // Should the item be free after he purchased it once?
  77.     permanent = false,
  78. })
  79.  
  80. AddItem({
  81.     type = 3,
  82.     name = "Health",
  83.     desc = "+25 Health.",
  84.     icon = zpn.Theme.Design.icon_health,
  85.     price = 50,
  86.     amount = 25,
  87.     ranks = {},
  88. })
  89.  
  90. AddItem({
  91.     type = 4,
  92.     name = "Armor",
  93.     desc = "+25 Armor.",
  94.     icon = zpn.Theme.Design.icon_armor,
  95.     price = 50,
  96.     amount = 25,
  97.     ranks = {},
  98. })
  99.  
  100. AddItem({
  101.     type = 2,
  102.     class = "weapon_ak472",
  103.     name = "AK 47",
  104.     desc = "Awesome gun!",
  105.     model = "models/weapons/w_rif_ak47.mdl",
  106.     model_skin = 0,
  107.     model_fov = 23,
  108.     icon = nil,
  109.     price = 100,
  110.     amount = 1,
  111.     ranks = {
  112.         ["superadmin"] = true,
  113.         ["VIP"] = true,
  114.     },
  115. })
  116.  
  117. AddItem({
  118.     type = 2,
  119.     class = "zpn_partypopper",
  120.     name = "Pumpkin Popper",
  121.     desc = "Perfect for celebrating Halloween!",
  122.     model = "models/zerochain/props_pumpkinnight/zpn_partypopper.mdl",
  123.     model_skin = 0,
  124.     model_fov = 13,
  125.     icon = nil,
  126.     price = 50,
  127.     amount = 1,
  128.     ranks = {
  129.         ["superadmin"] = true,
  130.         ["VIP"] = true,
  131.     },
  132.     permanent = true,
  133. })
  134.  
  135. AddItem({
  136.     type = 2,
  137.     class = "zpn_partypopper01",
  138.     name = "Pumpkin Slayer",
  139.     desc = "A powerfull weapon against pumpkins!",
  140.     model = "models/zerochain/props_pumpkinnight/zpn_partypopper.mdl",
  141.     model_skin = 1,
  142.     model_fov = 13,
  143.     price = 200,
  144.     amount = 1,
  145.     ranks = {
  146.         ["superadmin"] = true,
  147.         ["VIP"] = true,
  148.     },
  149.     permanent = true,
  150. })
  151.  
  152. AddItem({
  153.     type = 1,
  154.     class = "zpn_slapper_default",
  155.     name = "Slapper - Bounce",
  156.     desc = "Makes the victim bounce!",
  157.     model = "models/zerochain/props_pumpkinnight/zpn_slapper.mdl",
  158.     model_fov = 15,
  159.     model_skin = 0,
  160.     price = 25,
  161.     permanent = false,
  162. })
  163.  
  164. AddItem({
  165.     type = 1,
  166.     class = "zpn_slapper_fire",
  167.     name = "Slapper - Fire",
  168.     desc = "Sets the victim on fire!",
  169.     model = "models/zerochain/props_pumpkinnight/zpn_slapper.mdl",
  170.     model_fov = 15,
  171.     model_skin = 2,
  172.     price = 100,
  173.     permanent = false,
  174. })
  175.  
  176. AddItem({
  177.     type = 1,
  178.     class = "zpn_slapper_candy",
  179.     name = "Slapper - Candy",
  180.     desc = "Slaps the candy out of the victim!",
  181.     model = "models/zerochain/props_pumpkinnight/zpn_slapper.mdl",
  182.     model_fov = 15,
  183.     model_skin = 1,
  184.     price = 150,
  185.     permanent = false,
  186. })
  187.  
  188. /*
  189.     //////////////////////
  190.     //Shop Item Exambles//
  191.     //////////////////////
  192.  
  193.     ASS https://www.gmodstore.com/market/view/advanced-accessory-the-most-advanced-accessory-system
  194.     AddItem({
  195.         type = 13,
  196.         class = 1, // UniqueID
  197.         name = "Pumpkin Hat",
  198.         desc = "A nice hat!",
  199.         model = "models/props/pumpkin_z.mdl",
  200.         price = 25,
  201.         amount = 1,
  202.         model_skin = 1,
  203.         model_fov = 13,
  204.         permanent = true,
  205.     })
  206.  
  207.  
  208.     SH Accessory HatID https://www.gmodstore.com/market/view/3781
  209.     AddItem({
  210.         type = 5,
  211.         class = "pumpkinhat",
  212.         name = "Pumpkin Hat",
  213.         desc = "A nice hat!",
  214.         model = "models/props/pumpkin_z.mdl",
  215.         price = 25,
  216.         amount = 1,
  217.         model_skin = 1,
  218.         model_fov = 13,
  219.         permanent = true,
  220.     })
  221.  
  222.  
  223.     Pointshop01 Points https://github.com/adamdburton/pointshop
  224.     AddItem({
  225.         type = 6,
  226.         name = "PS1 Points",
  227.         desc = "Some Pointshop points!",
  228.         icon = Material("materials/zerochain/zpn/ui/zpn_p01_icon.png", "smooth"),
  229.         price = 10,
  230.         amount = 5,
  231.     })
  232.  
  233.  
  234.     Pointshop02 StandardPoints https://github.com/Kamshak/Pointshop2
  235.     AddItem({
  236.         type = 7,
  237.         name = "PS2 StandardPoints",
  238.         desc = "Some Pointshop2 points!",
  239.         icon = Material("materials/zerochain/zpn/ui/zpn_p02_icon.png", "smooth"),
  240.         price = 10,
  241.         amount = 5,
  242.     })
  243.  
  244.     Pointshop02 PremiumPoints https://github.com/Kamshak/Pointshop2
  245.     AddItem({
  246.         type = 8,
  247.         name = "PS2 PremiumPoints",
  248.         desc = "Some Pointshop2 PremiumPoints!",
  249.         icon = Material("materials/zerochain/zpn/ui/zpn_p02+_icon.png", "smooth"),
  250.         price = 50,
  251.         amount = 5,
  252.     })
  253.  
  254.     BluesUnboxing3 https://www.gmodstore.com/market/view/5306
  255.     AddItem({
  256.         type = 9,
  257.         class = "weaponid",
  258.         name = "Butterflyknife",
  259.         desc = "Cool Knife!",
  260.         model = "models/props/butterflyknife.mdl",
  261.         price = 150,
  262.         amount = 1,
  263.         model_skin = 1,
  264.         model_fov = 13,
  265.         permanent = true,
  266.     })
  267.  
  268.     EasySkins https://www.gmodstore.com/market/view/easy-skins
  269.     AddItem({
  270.         type = 11,
  271.         skin_name = "Graffiti",
  272.         name = "Graffiti",
  273.         price = 25,
  274.         amount = 1,
  275.         ranks = {
  276.             ["superadmin"] = true,
  277.             ["VIP"] = true,
  278.         },
  279.     })
  280.  
  281.  
  282.     mTokens https://www.gmodstore.com/market/view/6712
  283.     AddItem({
  284.         type = 12,
  285.         name = "mTokens",
  286.         desc = "Some mTokens!",
  287.         icon = Material("materials/zerochain/zpn/ui/zpn_p01_icon.png", "smooth"),
  288.         price = 25,
  289.         amount = 1,
  290.     })
  291.  
  292.     ZerosPyrocrafter 2 - PyroCoins https://www.gmodstore.com/market/view/zero-s-pyrocrafter-2-firework-script
  293.     AddItem({
  294.         type = 27,
  295.         name = "PyroCoins",
  296.         desc = "Those coins can be used to unbox new effects!",
  297.         icon = Material("materials/zerochain/zpc2/ui/zpc2_pyrocoin.png", "smooth"),
  298.         price = 10,
  299.         amount = 1,
  300.     })
  301.  
  302.     Lua Examble
  303.     AddItem({
  304.         type = 28,
  305.         name = "Fire",
  306.         desc = "Its just fire.",
  307.         icon = Material("materials/zerochain/zerolib/ui/icon_hot.png", "smooth"),
  308.         price = 1,
  309.         lua = function(ply)
  310.             ply:Ignite(3,1)
  311.         end,
  312.     })
  313.  
  314.     //////////////////////
  315.     //////////////////////
  316. */
  317.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement