


Was this page helpful?
All configuration is in config.lua. The file is escrow_ignore-listed — you always have full access to it.
MBT.Language = "EN"
MBT.ItemName = "campkit"
MBT.GetUpKey = "E"
MBT.WarmingDistance = 2.5
MBT.MaxDistanceMove = 4.0| Option | Type | Default | Description |
|---|---|---|---|
MBT.Language | string | "EN" | Language for all in-game labels. Built-in values: "EN", "IT". |
MBT.ItemName | string | "campkit" | Inventory item name that deploys the camp. Must match the item defined in your inventory system. |
MBT.GetUpKey | string | "E" | Keyboard key to stand up from a chair. Registered via RegisterKeyMapping — players can rebind it. |
MBT.WarmingDistance | number | 2.5 | Units from the bonfire at which the warming animation triggers. |
MBT.MaxDistanceMove | number | 4.0 | If the player moves further than this from a prop while in move mode, move mode exits automatically. |
Defines the GTA prop model for each camping object.
MBT.Props = {
["Tent"] = `prop_skid_tent_01`,
["Chair"] = `prop_skid_chair_02`,
["Fire"] = `prop_beach_fire`,
["Grill"] = `prop_bbq_5`
}Replace the hash with any valid GTA prop hash to change the visual. The key names (Tent, Chair, Fire, Grill) are used internally — do not rename them.
Keyboard controls used when a player enters move mode on a prop.
MBT.MoveControls = {
["Up"] = 44, -- Q — raise prop
["Down"] = 20, -- Z — lower prop
["Forward"] = 172, -- ↑ Arrow — move forward
["Back"] = 173, -- ↓ Arrow — move backward
["Left"] = 174, -- ← Arrow — move left
["Right"] = 175, -- → Arrow — move right
["RotateLeft"] = 117, -- NUMPAD 9 — rotate
["RotateRight"] = 118, -- NUMPAD 7 — rotate
["Confirm"] = 179, -- SPACE — confirm position
}Values are GTA V control IDs. You can find the full list in the FiveM control reference.
Defines which inventory items can be cooked on the grill, what they produce, and an optional prop shown on the grill while cooking.
MBT.Items = {
["meat"] = {
["Cooked"] = "cooked_meat",
["Burnt"] = "burnt_meat",
["Prop"] = `prop_cs_burger_01` -- optional visual prop on grill
}
}| Field | Required | Description |
|---|---|---|
| Key | ✅ | Raw item name as it appears in your inventory |
Cooked | ✅ | Item given on skill check success |
Burnt | ✅ | Item given on skill check failure |
Prop | ❌ | GTA prop displayed on the grill during cooking. Remove the line to skip the visual. |
Adding a new cookable item:
MBT.Items = {
["meat"] = {
["Cooked"] = "cooked_meat",
["Burnt"] = "burnt_meat",
["Prop"] = `prop_cs_burger_01`
},
["fish"] = {
["Cooked"] = "cooked_fish",
["Burnt"] = "burnt_fish",
}
}Make sure each item name (meat, fish, etc.) is registered in your inventory system.
The cooking mini-game is configured inside MBT.SetupSkillbar in config.lua:
function MBT.SetupSkillbar(data)
local skillSettings = {
["Time"] = 2.5,
["Diffculty"] = "medium",
["Area"] = 60,
["SpeedMultiplier"] = 2,
}
data.cookingSuccess = lib.skillCheck({
skillSettings["Diffculty"],
skillSettings["Diffculty"],
{ areaSize = skillSettings["Area"], speedMultiplier = skillSettings["SpeedMultiplier"] },
skillSettings["Diffculty"]
| Setting | Default | Description |
|---|---|---|
Time | 2.5 | Duration of each skill check window in seconds |
Diffculty | "medium" | Difficulty tier: "easy", "medium", "hard", "veryHard" |
The skill check runs 4 times (3 × difficulty + 1 custom). The player must pass all of them to get a cooked item.
Notifications use ox_lib.notify by default. You can replace the functions with your own system.
MBT.Notification = function(text, text2, type)
lib.notify({
title = text,
description = 'CAMPING',
-- ... styling
})
endThe function receives (text, title, type) where type is "info", "success" or "error".
MBT.ServerNotification = function(source, text, text2, type)
lib.notify(source, { title = text, ... })
endReceives (source, text, title, type). Used for chair-busy errors sent from the server.
All visible strings are in MBT.Labels. Add a new language block by duplicating the "EN" table:
MBT.Labels = {
["EN"] = {
["Veh_Banned"] = { ["Title"] = "Error", ["Text"] = "You can't do this in a vehicle!" },
["No_More_Warming"]={ ["Title"] = "Camping", ["Text"] = "You are not warming anymore" },
["Warming"] = { ["Title"] = "Camping", ["Text"] = "You are warming" },
["Nothing_To_Cook"]={ ["Title"] = "Barbecue",["Text"] = "You have nothing to grill" },
["Help_Ent"] = { ["Text"] = "🔼🔽◀️▶️ Move<br>5️⃣8️⃣ Up/Down<br>7️⃣9️⃣ Rotate<br>[SPACE] Confirm", ["Color"] = "darkblue", ["Alignment"] = "left"
Set MBT.Language = "IT" (or your custom key) to switch.
Area60 |
| Size of the hit area (larger = easier) |
SpeedMultiplier | 2 | Speed of the moving indicator (higher = harder) |