1
0
Fork 0
forked from Simnation/Main
Main/resources/[inventory]/nordi_backpack/config.lua
2025-07-30 01:43:12 +02:00

95 lines
2.9 KiB
Lua

Config = {}
-- Bag component IDs and their inventory properties
-- These are the drawable IDs for the "bags" component (component ID 5)
-- Separated by gender (0 = male, 1 = female)
Config.Backpacks = {
[0] = { -- Male backpacks
[158] = { -- Example: Small backpack drawable ID for males
maxweight = 10000, -- 10kg
slots = 10,
label = 'Small Backpack',
-- Optional: specific textures
textures = {
[0] = true, -- Texture ID 0
[1] = true, -- Texture ID 1
-- Add more textures if needed
}
},
[41] = { -- Example: Medium backpack drawable ID for males
maxweight = 20000, -- 20kg
slots = 15,
label = 'Medium Backpack'
},
[44] = { -- Example: Large backpack drawable ID for males
maxweight = 30000, -- 30kg
slots = 20,
label = 'Large Backpack'
},
[52] = { -- Example: Tactical backpack drawable ID for males
maxweight = 40000, -- 40kg
slots = 25,
label = 'Tactical Backpack'
},
[81] = { -- Example: Hiking backpack drawable ID for males
maxweight = 50000, -- 50kg
slots = 30,
label = 'Hiking Backpack'
}
},
[1] = { -- Female backpacks
[158] = { -- Example: Small backpack drawable ID for females
maxweight = 10000, -- 10kg
slots = 10,
label = 'Small Backpack'
},
[39] = { -- Example: Medium backpack drawable ID for females
maxweight = 20000, -- 20kg
slots = 15,
label = 'Medium Backpack'
},
[42] = { -- Example: Large backpack drawable ID for females
maxweight = 30000, -- 30kg
slots = 20,
label = 'Large Backpack'
},
[49] = { -- Example: Tactical backpack drawable ID for females
maxweight = 40000, -- 40kg
slots = 25,
label = 'Tactical Backpack'
},
[77] = { -- Example: Hiking backpack drawable ID for females
maxweight = 50000, -- 50kg
slots = 30,
label = 'Hiking Backpack'
}
}
}
-- Key to open backpack inventory (default: B)
Config.BackpackKey = 'B'
-- Debug mode - prints additional information to console
Config.Debug = true
-- Notification settings
Config.Notifications = {
noBackpack = {
title = 'Backpack',
description = 'You don\'t have a backpack equipped!',
type = 'error'
},
backpackOpened = {
title = 'Backpack',
description = 'You opened your backpack',
type = 'success'
}
}
-- Logging settings
Config.Logs = {
enabled = true,
webhookName = 'backpacks', -- Name of the webhook in qb-log
openTitle = 'Backpack Opened',
openColor = 'blue'
}