๐ฅ BLN Campfire โ

๐บ Preview โ
๐ฐ Buy Now โ
Add immersive campfires to your RedM server! Place campfires, sit around them with friends, and create cozy gathering spots in the wilderness.
โจ Features โ
๐ฎ Multiple ways to place campfires (command or usable items)
๐ Multiple campfire types and styles
๐ฅ Fully synchronized across all players
๐ซ Smooth placement preview system
๐ช Sit around campfires with proper animations with your friends
๐ Persistent through player reconnects
โก Optimized performance
๐ก๏ธ Smart placement restrictions (towns, water, roads)
๐ง Framework support out of the box:
- VORP Core
- RedEM / RedEM 2023
- QBR Core
- RSG Core
- QR Core
- Easily extendable for other frameworks
Dependencies โ
โ๏ธ Installation โ
- Download the latest release
- Extract the files to your server's resource folder
- Add
ensure bln_campfire
to yourserver.cfg
- Configure the settings in
config.lua
to your liking - Restart your server
๐ ๏ธ Configuration โ
lua
Config = {
promptDistance = 2.0, -- Maximum distance to show prompts when near a campfire
command = 'setupcampfire', -- Command to setup campfire (e.g. /setupcampfire [campfireType])
keybindins = {
["place"] = { label = "Place", key = 0xC7B5340A }, -- Enter key
["cancel"] = { label = "Cancel", key = 0x156F7119 }, -- Backspace key
["remove"] = { label = "Remove", key = 0xC7B5340A }, -- Enter key
["sit"] = { label = "Sit", key = 0x760A9C6F }, -- G key
["standup"] = { label = "Stand Up", key = 0xB2F377E8 }, -- F key
},
placementSettings = {
allowMounted = false, -- Allow/disallow placing while mounted
preventInTowns = true, -- Prevent placing inside town limits
preventNearWater = true, -- Prevent placing near water bodies
roadDistance = 5.0, -- Minimum distance from roads (in meters)
maxCampfiresPerPlayer = 1, -- Maximum number of campfires per player (0 for unlimited)
waterCheckDistance = 15.0, -- Distance to check for water bodies
},
campfireTypes = {
["campfire1"] = {
model = "p_campfire01x",
itemName = "campfire1", -- usable item name
},
["campfire2"] = {
model = "p_campfire02x",
itemName = "campfire2",
},
["campfire3"] = {
model = "p_campfire03x",
itemName = "campfire3",
},
["campfire4"] = {
model = "p_campfire04x",
itemName = "campfire4",
},
["campfire5"] = {
model = "p_campfire05x",
itemName = "campfire5",
},
-- Add more campfire types here as needed
},
-- Translations
T = {
-- Titles
campfireTitle = "Campfire",
placementErrorTitle = "Cannot Place Campfire",
warningTitle = "Warning",
-- General messages
notAllowedToPlaceCampfireDesc = "You are not allowed to place a campfire here.",
-- Specific placement error messages
mountedError = "You cannot place a campfire while mounted. Please dismount first.",
townError = "Campfires cannot be placed within town limits. Try finding a spot in the wilderness.",
waterError = "This location is too close to water. Find drier ground.",
roadError = "This spot is too close to the road. Move further away for safety.",
maxCampfiresError = "You've reached your maximum number of campfires. Remove an existing one first.",
-- Interaction messages
campfirePlaced = "Campfire successfully placed",
campfireRemoved = "Campfire removed",
invalidType = "Invalid campfire type selected",
}
}
๐ฎ Usage โ
Two ways to place campfires:
Using the command:
/setupcampfire [type]
- Places a campfire of the specified type
Using inventory items:
- Configure item names in
config.lua
- Items are automatically registered with your framework
- Use the item from your inventory to place the campfire
- Configure item names in
๐ง Framework Support โ
- Built-in support for major RedM frameworks
- Easy to extend for custom frameworks
- Modify
framework.lua
to add support for additional frameworks - Examples provided for item registration and framework detection
๐ป Developer Notes โ
- Framework detection and support in
framework.lua
- Can be modified to support additional frameworks
- Item registration examples for each supported framework
- Clean code structure for easy modifications
๐ค Support โ
Need help? Have questions? Join our Discord server for support and updates!
- ๐ฌ Discord: Join Here
- ๐ฎ Live support and community help
- ๐ Regular updates and improvements