free-resources
Auction Experience

Auction Experience

Standalone FiveM Auction System | Framework Independent

lcky-auction is an immersive, optimized, and simple in-game auction experience for FiveM servers.


โœจ Features

FeatureDescription
โœ… Framework IndependentNo ESX/QB-Core required
โœ… ox_lib RequiredModern UI powered by ox_lib
โœ… RAM-BasedNo database needed
โœ… Event-DrivenNo global loops
โœ… Zone-BasedUses lib.points for proximity
โœ… 3-Stage Host ControlGoing Once โ†’ Twice โ†’ SOLD

๐Ÿ“ฆ Installation

Prerequisites

Steps

# 1. Place in your resources folder
# resources/lcky-auction/
 
# 2. Ensure ox_lib is installed
 
# 3. Add to server.cfg
ensure lcky-auction
 
# 4. Start your server

๐Ÿ“ File Structure

lcky-auction/
โ”œโ”€โ”€ fxmanifest.lua
โ”œโ”€โ”€ shared/
โ”‚   โ”œโ”€โ”€ config.lua      # Configuration
โ”‚   โ””โ”€โ”€ utils.lua       # Utility functions
โ”œโ”€โ”€ client/
โ”‚   โ”œโ”€โ”€ main.lua        # Client entry
โ”‚   โ”œโ”€โ”€ zone.lua        # Zone management
โ”‚   โ”œโ”€โ”€ ui.lua          # UI handling
โ”‚   โ”œโ”€โ”€ animation.lua   # Animations
โ”‚   โ””โ”€โ”€ keybinds.lua    # Keybind setup
โ””โ”€โ”€ server/
    โ”œโ”€โ”€ main.lua        # Server entry
    โ””โ”€โ”€ auction.lua     # Auction logic

๐ŸŽฎ Usage

Create Auction

Use the command /auction to open the input dialog and create a new auction.

Join Auction

  1. Enter the auction zone
  2. Press X to join

Place Bid

  1. After joining, press X
  2. Enter your bid amount

Host Controls

KeyAction
F5Going Once
F6Going Twice
F7SOLD

โš™๏ธ Configuration

Edit shared/config.lua:

Config = {
    Zone = {
        radius = 50.0,  -- Auction zone radius
    },
    Keybinds = {
        joinBid = {
            defaultKey = 'X',  -- Key to join/place bid
        },
    },
    Defaults = {
        defaultDuration = 120,  -- Default auction duration (seconds)
    },
}

โšก Optimization

The script is highly optimized for performance:

  • โŒ No while true loops
  • โœ… lib.points internal tick system
  • โœ… TextUI updates only on time change
  • โœ… Zone-only broadcast (saves bandwidth)

๐Ÿ”ง Requirements

RequirementVersion
FiveM Server5181+
ox_libLatest

๐Ÿ“ License

Developed by LuckyScripts