Contract - Job Posting
Advanced, Optimized & Dynamic Job Posting / Contract System | Framework Agnostic
lcky-contract is a highly optimized job posting and contract system for FiveM. Built with a robust Bridge Architecture that natively supports multiple frameworks out of the box.
โจ Features
Framework Support
- ๐๏ธ Framework Agnostic - Supports
qbx_core,qb-core, andes_extended - ๐ฏ Target Support - Compatible with
ox_targetandqb-target - ๐ Universal Access - Any player can post jobs (no job restrictions)
Database Optimization
- ๐ง Smart Filtering - Expired listings filtered dynamically
- ๐งน Auto Cleanup - Background loop cleans expired rows every 1 hour
- ๐พ No Bloat - SQL tables stay clean
UI & Features
- ๐จ ox_lib UI - Beautiful input dialogs, context menus, and alerts
- ๐ My Postings Hub - Manage your active postings (update/delete)
- โฐ Configurable Limits - Set maximum posting duration (e.g., 72 hours)
- ๐ Dynamic NPC Spawning - NPC spawns only when players nearby (0.00ms usage)
๐ฆ Dependencies
| Dependency | Required |
|---|---|
| ox_lib (opens in a new tab) | โ |
| oxmysql (opens in a new tab) | โ |
| Framework (qbx_core, qb-core, or es_extended) | โ |
| Target System (ox_target or qb-target) | โ |
๐ Installation
Step 1 - Place the Resource
resources/
โโโ [lcky-scripts]/
โโโ lcky-contract/Step 2 - Database Setup
Execute the SQL file at install/contracts.sql in your database (HeidiSQL, phpMyAdmin, etc.)
Step 3 - Configuration
Edit shared/config.lua:
-- Choose your Framework: 'qbx', 'qb', or 'esx'
Config.Framework = 'qbx'
-- Choose your Target system: 'ox_target' or 'qb-target'
Config.Target = 'ox_target'
-- Maximum duration (in hours) a player can list a job
Config.MaxDuration = 72Step 4 - Add to server.cfg
ensure ox_lib
ensure oxmysql
ensure lcky-contractโ๏ธ NPC Configuration
Add or move NPCs in shared/config.lua:
Config.NPCs = {
{
model = `a_m_y_business_02`, -- Ped model
coords = vector4(238.48, -407.97, 47.92, 345.5), -- X, Y, Z, Heading
scenario = "WORLD_HUMAN_STAND_MOBILE" -- Animation
},
-- Add more NPCs as needed
}๐ฎ In-Game Usage
1. Locate the NPC
Find the Job Center NPC at the configured coordinates.
2. Main Menu Options
- Create Job Posting - Fill out Business Name, Job Title, Salary, Contact, Description, Duration
- View Job Postings - Browse all active jobs on the server
- My Postings - View, Update, or Delete your own postings
3. Contact Employer
Click the "Contact" button to copy the employer's phone number to clipboard.
๐ Localization
Everything is 100% translatable. Edit locales/en.json:
{
"create_posting": "Create Job Posting",
"view_postings": "View Job Postings",
"my_postings": "My Postings"
}๐๏ธ Bridge System
The script automatically detects your framework:
shared/bridge/
โโโ init.lua โ Auto-detect framework
โโโ qb.lua โ QBX/QB-Core adapter
โโโ esx.lua โ ESX adapter๐ Commands
| Command | Description |
|---|---|
/contract | Open main contract menu |
๐ License
Developed by LuckyScripts