Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- define items, see the Inventory API on github
- local cfg = {}
- -- see the manual to understand how to create parametric items
- -- idname = {name or genfunc, description or genfunc, genfunc choices or nil, weight or genfunc}
- -- a good practice is to create your own item pack file instead of adding items here
- cfg.items = {
- ["Benzoilmetilecgonina"] = {"coca-blade", "nogle Coca-blade.", nil, 0.01}, -- no choices
- ["seeds"] = {"hampfrø", "nogle hampfrø.", nil, 0.01}, -- no choices
- ["harness"] = {"lyserginsyre", "noget lyserginsyre.", nil, 0.01}, -- no choices
- ["AK47"] = {"AK47", "AK47.", nil, 0.01}, -- no choices
- ["M4A1"] = {"M4A1", "M4A1.", nil, 0.01}, -- no choices
- ["credit"] = {"Credit kort", "Credit kort.", nil, 0.01}, -- no choices
- ["driver"] = {"kørekort", "et kørekort.", nil, 0.01}, -- no choices
- ["bank_money"] = {"Money of bank", "$.", nil, 0} -- no choices
- }
- -- load more items function
- local function load_item_pack(name)
- local items = module("cfg/item/"..name)
- if items then
- for k,v in pairs(items) do
- cfg.items[k] = v
- end
- else
- print("[vRP] item pack ["..name.."] not found")
- end
- end
- -- PACKS
- load_item_pack("required")
- load_item_pack("food")
- load_item_pack("drugs")
- return cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement