Advertisement
eddyz27

1212121

Aug 22nd, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. -- define items, see the Inventory API on github
  2.  
  3. local cfg = {}
  4. -- see the manual to understand how to create parametric items
  5. -- idname = {name or genfunc, description or genfunc, genfunc choices or nil, weight or genfunc}
  6. -- a good practice is to create your own item pack file instead of adding items here
  7. cfg.items = {
  8. ["benzoilmetilecgonina"] = {"Benzoilmetilecgonina", "Some Benzoic acid ester.", nil, 0.01}, -- no choices
  9. ["seeds"] = {"Seeds", "Some Weed seeds.", nil, 0.01}, -- no choices
  10. ["harness"] = {"Harness", "Some Harness Lysergsäurediethylamid.", nil, 0.01}, -- no choices
  11. ["AK47"] = {"AK47", "A Russian masterpeice.", nil, 0.01}, -- no choices
  12. ["M4A1"] = {"M4A1", "Helps give non-Americans freedom.", nil, 0.01}, -- no choices
  13. ["credit"] = {"Stolen Credit Card", "Credit card.", nil, 0.01}, -- no choices
  14. ["driver"] = {"Driver license Card", "license card.", nil, 0.01}, -- no choices
  15. ["bank_money"] = {"Money of bank", "$.", nil, 0},
  16. ["trash"] = {"Trash", "It fucking stinks!", nil, 0}, -- no choices
  17. ["fake_id"] = {"Fake ID", "It just says Mcluvin.", nil, 0}, -- no choices
  18. ["police_report"] = {"Police Report", "Take it to the Bank Manager.", nil, 0}, -- no choices
  19. ["ems_report"] = {"EMS Report", "Take it to the Hospital.", nil, 0}, -- no choices
  20. ["cargo"] = {"Cargo", "Boxes full of porn.", nil, 0} -- no choices
  21. ["Prova1"] = {"Prova1", "questa è una Prova", nil, 0.01}, -- no choices
  22. }
  23.  
  24. -- load more items function
  25. local function load_item_pack(name)
  26. local items = module("cfg/item/"..name)
  27. if items then
  28. for k,v in pairs(items) do
  29. cfg.items[k] = v
  30. end
  31. else
  32. print("[vRP] item pack ["..name.."] not found")
  33. end
  34. end
  35.  
  36. -- PACKS
  37. load_item_pack("required")
  38. load_item_pack("food")
  39. load_item_pack("drugs")
  40.  
  41. return cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement