Auction Experience
Standalone FiveM Auction System | Framework Independent
lcky-auction is an immersive, optimized, and simple in-game auction experience for FiveM servers.
โจ Features
| Feature | Description |
|---|---|
| โ Framework Independent | No ESX/QB-Core required |
| โ ox_lib Required | Modern UI powered by ox_lib |
| โ RAM-Based | No database needed |
| โ Event-Driven | No global loops |
| โ Zone-Based | Uses lib.points for proximity |
| โ 3-Stage Host Control | Going Once โ Twice โ SOLD |
๐ฆ Installation
Prerequisites
- FiveM Server (Build 5181+)
- ox_lib (opens in a new tab)
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
- Enter the auction zone
- Press X to join
Place Bid
- After joining, press X
- Enter your bid amount
Host Controls
| Key | Action |
|---|---|
F5 | Going Once |
F6 | Going Twice |
F7 | SOLD |
โ๏ธ 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 trueloops - โ lib.points internal tick system
- โ TextUI updates only on time change
- โ Zone-only broadcast (saves bandwidth)
๐ง Requirements
| Requirement | Version |
|---|---|
| FiveM Server | 5181+ |
| ox_lib | Latest |
๐ License
Developed by LuckyScripts