Advertisement
Guest User

Untitled

a guest
May 29th, 2014
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. /*---------------------------------------------------------------------------
  2. DarkRP custom shipments and guns
  3. ---------------------------------------------------------------------------
  4.  
  5. This file contains your custom shipments and guns.
  6. This file should also contain shipments and guns from DarkRP that you edited.
  7.  
  8. Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua
  9. Once you've done that, copy and paste the shipment to this file and edit it.
  10.  
  11. The default shipments and guns can be found here:
  12. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua
  13.  
  14. For examples and explanation please visit this wiki page:
  15. http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields
  16.  
  17.  
  18. Add shipments and guns under the following line:
  19. ---------------------------------------------------------------------------*/
  20.  
  21. AddCustomShipment("AK-47 Shipment", {
  22. model = "models/weapons/w_ak47_m9k.mdl", -- The model of the item that hovers above the shipment
  23. entity = "m9k_ak47", -- the entity that comes out of the shipment
  24. price = 100, -- the price of one shipment
  25. amount = 10, -- how many of the item go in one purchased shipment
  26. separate = true, -- whether the item is sold separately (usually used for guns)
  27. pricesep = 100, -- the price of a separately sold item
  28. noship = false, -- whether this item has a shipment
  29. allowed = {TEAM_GUN, TEAM_HEAVY}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun
  30. shipmodel = "models/items/item_item_crate.mdl", -- OPTIONAL, the model of the shipment (this crate is the default)
  31. customCheck = function(ply) return ply:Frags() < 10 end, -- OPTIONAL, extra conditions before people can purchase the shipment or separate item
  32. spareammo = 10, -- OPTIONAL, Add ammo to the default amount of ammo for every weapon
  33. clip1 = 10, -- OPTIONAL, The amount of bullets in the primary clip by default
  34. clip2 = 10, -- OPTIONAL, The amount of bullets in the secondary clip by default
  35. buttonColor = Color(255, 255, 255, 255), -- Optional: The color of the button in the F4 menu,
  36. label = "AK-47" -- Optional: the text on the button in the F4 menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement