Installation and Configuration

and descrpiton

in-camping — Water, Campfire and Tent System (QBCore)

  • Framework: QBCore

  • Target: qb-target (default) or ox_target

  • Progress bar: QBCore (default) or ox_lib (optional)

Requirements

  • Collect water at configured points with E (empty bottle → dirty water).

  • Place a campfire via item use; build animation + progress.

  • Boil dirty water into clean water at the campfire.

  • Pitch a tent via item use; build animation + progress.

  • Target menu actions: “Boil Water” and “Pick Up”.

  • QBCore progress bar; qb-target support.

  • Config-driven localization (TR/EN included).

Features

A configurable FiveM/QBCore system for collecting water at set locations, placing a campfire, and pitching a tent. Fully localized via config. Installation

  1. Put the resource into resources/[garfield]/in-camping.

  2. Add to server.cfg:ensure in-camping

  3. Adjust items and locations in config.lua.

  4. Add the items to qb-core/shared/items.lua.

Configuration

Language: Config.Locale = 'en' -- or 'tr'

Items: Config.Items = { EmptyBottle = 'empty_bottle', DirtyWater = 'dirty_water', CleanWater = 'water_bottle', Campfire = 'campfire', Tent = 'tent' }

Water locations (example)

Config.WaterLocations = { { coords = vector3(2106.69, 3827.02, 30.98), radius = 5.0, markerType = 1, markerColor = { r=0, g=100, b=255, a=100 }, drawDistance = 20.0, interactDistance = 2.0 } }

Target/Progress bar:

Config.UseOxTarget = false Config.UseOxLib = false

Items (qb-core/shared/items.lua)

['empty_bottle'] = { name='empty_bottle', label='Empty Bottle', weight=100, type='item', image='empty_bottle.png', unique=false, useable=false, shouldClose=false },
['dirty_water']  = { name='dirty_water',  label='Dirty Water',  weight=100, type='item', image='dirty_water.png',  unique=false, useable=false, shouldClose=false },
['water_bottle'] = { name='water_bottle', label='Clean Water',  weight=100, type='item', image='water_bottle.png', unique=false, useable=true,  shouldClose=true },
['campfire']     = { name='campfire',     label='Campfire',     weight=1000, type='item', image='campfire.png',     unique=false, useable=true, shouldClose=true },
['tent']         = { name='tent',         label='Tent',         weight=1500, type='item', image='tent.png',         unique=false, useable=true, shouldClose=true },

Developer Events (reference)

  • Client → Server: camping:collectWater, camping:placeCampfire, camping:cookWater, camping:removeCampfire, camping:placeTent, camping:removeTent

  • Server → Client: camping:spawnCampfire, camping:spawnTent, camping:client:UseCampfire, camping:client:UseTent

Last updated