Advertisement
Guest User

Shipment Example

a guest
Mar 28th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. AddCustomShipment("Custom AK-74", {
  2.         model = "models/weapons/w_rif_ak47.mdl", -- The model of the item that hovers above the shipment
  3.         entity = "fas2_ak74", -- the entity that comes out of the shipment
  4.         price = 8500, -- the price of one shipment
  5.         amount = 5, -- how many of the item go in one purchased shipment
  6.         separate = false, -- whether the item is sold separately (usually used for guns)
  7.         pricesep = 1800, -- the price of a separately sold item
  8.         noship = false, -- whether this item has a shipment
  9.         allowed = {TEAM_GUN}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
  10.         shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
  11.         customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
  12.         weight = 15, -- OPTIONAL, the weight of the shipment. The default is the weight of the shipment
  13. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement