Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 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"] = {"coca-blade", "nogle Coca-blade.", nil, 0.01}, -- no choices
  9. ["seeds"] = {"hampfrø", "nogle hampfrø.", nil, 0.01}, -- no choices
  10. ["harness"] = {"lyserginsyre", "noget lyserginsyre.", nil, 0.01}, -- no choices
  11. ["AK47"] = {"AK47", "AK47.", nil, 0.01}, -- no choices
  12. ["M4A1"] = {"M4A1", "M4A1.", nil, 0.01}, -- no choices
  13. ["credit"] = {"Credit kort", "Credit kort.", nil, 0.01}, -- no choices
  14. ["driver"] = {"kørekort", "et kørekort.", nil, 0.01}, -- no choices
  15. ["bank_money"] = {"Money of bank", "$.", nil, 0} -- no choices
  16. }
  17.  
  18. -- load more items function
  19. local function load_item_pack(name)
  20. local items = module("cfg/item/"..name)
  21. if items then
  22. for k,v in pairs(items) do
  23. cfg.items[k] = v
  24. end
  25. else
  26. print("[vRP] item pack ["..name.."] not found")
  27. end
  28. end
  29.  
  30. -- PACKS
  31. load_item_pack("required")
  32. load_item_pack("food")
  33. load_item_pack("drugs")
  34.  
  35. return cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement