Two objects will appear near your player: a storage chest and a box of books.
The storage chest allows managing the campβs storage, it can be upgraded to increase storage capacity and camp radius. It represents the overall level of the camp. It can also be lockpicked by players who are not members of the camp (you can choose to display an alert when an attempt to loot is made). The box with the books allows access to the camp management menu and cannot be moved, remaining at the center of the camp.
If you have "label unknown" messages, it means you are using item names that are not in your database so you must change them with yours :
-- Items needed for craft
-- You must use item names from your database "items"
items = {
{ quantity = 8, name = "nails" },
{ quantity = 10, name = "plank" }
}
Here is an excerpt from the config.lua file : (parts of the excerpt are hidden)
Config.DEBUG = false
Config.ItemName = "camp_kit" -- Sets the item name required to start the script. (image and sql in sql/ folder). You can leave it empty "" to disable this
Config.PropCampCenter = "p_bookbox01x" -- Can't be move, can't be delete, can be hide with objects
Config.MaxMembers = 5 -- Maximum number of members per camp
Config.CampTimeOut = 20160 -- 2 weeks, 336h -> total deletion if no member has logged in
Config.DistanceBtwCamp = 100.0 -- Minimum allowed distance between 2 camps
Config.EnableCollision = false -- Allows collision with tents and campfires (not recommended)
Config.ResourceRecovery = 100 -- Percentage [0-100] of resource recovery per items when dismantling camps objects.
-- LOCKPICK -> qbr-lockpick
Config.canLockPick = false -- allow external players to steal camp objects
Config.lockPickEvent = "qbr-lockpick:client:openLockpick" -- https://github.com/qbcore-redm-framework/qbr-lockpick
Config.ItemLockPick = "lockpick" -- name of the item to be consumed for lockpicking
Config.AlertLockPick = false -- Alert camp members when someone is lockpicking the storage.
-- PROMPT KEYS -> folder shared/KEYS.lua
Config.StealStockage = keys["V"]
Config.OpenStockage = keys["C"]
Config.OpenCamp = keys["G"]
Config.DeleteObject = keys["U"] -- it's not an error, same key
Config.CraftObject = keys["U"] -- it's not an error, same key
Config.ChangeDistance = keys["DOWN"]
Config.RotateLeft = keys["LEFT"]
Config.RotateRight = keys["RIGHT"]
Config.Cancel = keys["R"]
-- BLIPS
Config.AddBlips = true -- Show camp on map with blips
Config.BlipSprite = 1754365229
Config.ZoneBlip = -308585968
--
--
Config.GROUP_RIGHT = { -- DON'T TOUCH grade, NEVER, ONLY label translation
OPEN_MENU = { grade = "", label = "Access the camp menu" },
UPGRADE_PROPS = { grade = "", label = "Upgrade objects" },
MOVE_PROPS = { grade = "", label = "Move objects" },
DELETE_PROPS = { grade = "", label = "Delete objects" },
OPEN_STOCKAGE = { grade = "", label = "Access the storage" },
ADD_MEMBERS = { grade = "", label = "Add members" },
DELETE_MEMBERS = { grade = "", label = "Remove members" },
EDIT_PERMS = { grade = "", label = "Edit permissions" },
CREATE_PROPS = { grade = "", label = "Create objects" },
EDIT_LEADER = { grade = "", label = "Change the leader" },
}
Config.BlackListZone = {
["BlackWater"] = { ZoneTypeId = 1, ZoneNameHashDec = 1053078005 },
["Strawberry"] = { ZoneTypeId = 1, ZoneNameHashDec = 427683330 },
["St-Denis"] = { ZoneTypeId = 1, ZoneNameHashDec = -765540529 },
["Rhodes"] = { ZoneTypeId = 1, ZoneNameHashDec = 2046780049 },
["Amardillo"] = { ZoneTypeId = 1, ZoneNameHashDec = -744494798 },
["Tumbleweed"] = { ZoneTypeId = 1, ZoneNameHashDec = -1524959147 },
}
Config.CampParametersPerLvl = { -- stock_size -> storage capacity per level, camp_radius -> effective camp diameter per level in meters
[0] = { stock_size = 35, camp_radius = 10.0 },
[1] = { stock_size = 80, camp_radius = 20.0 },
[2] = { stock_size = 140, camp_radius = 30.0 },
[3] = { stock_size = 230, camp_radius = 40.0 },
[4] = { stock_size = 350, camp_radius = 50.0 },
[5] = { stock_size = 500, camp_radius = 60.0 },
}
-- Allows generating a random camp name during creation
Config.Adjectives = {
-- this content is hidden in the excerpt
}
Config.Nouns = {
-- this content is hidden in the excerpt
}
Config.Txt = {
-- this content is hidden in the excerpt
}
Config.CampProps = {
PropCenter = {
name = "Camp Center",
max = 1,
proplist = {},
loaddist = 200.0
},
Stockage = {
name = "Storage box",
max = 1, -- max per camp
proplist = {
[1] = { -- level 1
{
model = "p_boxcar_crates01x", -- model to craft -- https://rdr2.mooshe.tv/
items = { -- items needed for craft
{ quantity = 8, name = "nails" },
{ quantity = 15, name = "plank_little" },
{ quantity = 1, name = "case" }
}
},
{
model = "p_crate01x",
items = {
{ quantity = 8, name = "nails" },
{ quantity = 15, name = "plank_little" },
{ quantity = 1, name = "case" }
}
},
{
model = "p_chair_crate02x",
items = {
{ quantity = 8, name = "nails" },
{ quantity = 15, name = "plank_little" },
{ quantity = 1, name = "case" }
}
},
},
[2] = {
{
model = "p_cratecover04x",
items = {
{ quantity = 24, name = "plank" },
{ quantity = 2, name = "case" },
{ quantity = 18, name = "nails" }
}
},
{
model = "p_cratecanvase01x",
items = {
{ quantity = 24, name = "rope" },
{ quantity = 18, name = "deerskin" },
{ quantity = 2, name = "case" }
}
},
-- this content is hidden in the excerpt
loaddist = 100.0 -- load distance (player can see this prop at this min distance)
},
}
-- this content is hidden in the excerpt