lw-gathering / Object based gathering

LW-Gathering – Dynamic Object-Based Gathering System

LW-Gathering is a fully standalone, server-synced gathering system for FiveM servers, built around dynamic object spawning, ox_target interaction, and secure server-side validation.

The script is designed with a clean modular architecture, ensuring performance efficiency, anti-exploit protection, and scalable zone-based resource spawning.


Features

Dynamic Spawn Zones

  • Server-side controlled prop spawning
  • Configurable spawn areas with radius support
  • Per-zone object limits
  • Automatic respawn timers

ox_target Integration

  • Clean interaction prompts
  • Distance-based targeting
  • Per-resource interaction labels
  • Fully configurable interaction options

Secure Gathering Logic

  • Server-authoritative item rewards
  • Anti-exploit validation checks
  • Distance verification before reward
  • Spawn ownership validation

Progress & Animations

  • Built-in progress bar support
  • Customisable animation per resource
  • Cancelable gathering actions
  • Configurable gather duration

Advanced Spawn Control

  • Time-of-day based spawning
  • Rare spawn chance system
  • Dynamic respawn timers
  • Per-zone configuration settings

Fully Standalone

  • No framework dependency required
  • Works with ox_inventory or framework inventories
  • Clean modular structure
  • Lightweight and optimised

Preview


Installation & Configuration

1. Framework / Inventory Setup

Inside config.lua:

Config.Framework = {
    Core = 'qbcore',      -- qbcore / esx
    Inventory = 'qbcore'  -- qbcore / ox / qs
}

This controls how items are given and player identifiers are retrieved.


2. Creating a Gather Zone

Each zone can define:

  • Spawn radius
  • Maximum active props
  • Respawn timer
  • Reward items
  • Rare item chances

3. Anti-Exploit Protection

  • Server validates player proximity
  • Prevents duplicate reward triggers
  • Blocks interaction if prop is invalid
  • Syncs prop deletion across clients

4. Commands

Command Access Description
/gatherdebug Admin Shows zone and spawn debug
/respawnzone Admin Forces zone respawn

Commands are fully configurable.


Technical Information

Purchase here: https://lughworks.tebex.io/package/7289382

Item Details
Code Access No (Escrow)
Subscription No
Approx. Lines ~1,200–1,500
Dependencies ox_target (required)
Inventory Support ox / qb / qs
UI / Config Access Yes
Support Provided Yes