View details
Fro-Economy
FRO Economy
Standalone banking, jobs, and business economy for FiveM — no framework required.
A complete, self-contained economy system built for servers that don't run ESX, QBCore, or QBox — or for framework servers that just want an independent money layer. Drop it in, connect a database, and you have working ATMs, player transfers, salaried jobs, and stocked shops out of the box.
Overview
FRO Economy gives every player a cash and bank balance tied to their FiveM identifier, with in-world ATMs to move money between the two, a /pay command for player-to-player transfers, a configurable job system that pays out on a timer, and a shop system with per-item stock that depletes as players buy. Everything is persisted to MySQL/MariaDB through oxmysql, and every core function is exposed as an export so you can call into it from your own resources.
Key Features
- Banking & ATMs — Walk up to any configured ATM, press E, and deposit or withdraw between cash and bank through a clean in-world terminal UI.
-
Player-to-player transfers —
/pay [id] [amount]sends cash directly to another online player, no menu required. - Jobs & paychecks — Define any number of jobs, each with numbered pay grades. Players get paid automatically on a configurable interval as long as they're online.
- Shops with live stock — Place shops anywhere on the map, each with its own item list, pricing, and stock count that actually depletes on purchase and can be restocked by staff.
- Standalone by design — No dependency on ESX, QBCore, or QBox. The only requirement is oxmysql.
- Inventory-agnostic — Doesn't assume any specific inventory system. Item purchases fire a clean event hook so you can wire it into whatever inventory resource you're already running.
-
Admin tooling included —
/setjob,/addmoney, and/restockcommands, gated behind an ace permission you control. -
Built-in transaction log — Every cash/bank change is written to a
fro_transactionstable for auditing or building your own admin dashboard on top of it.
What's Included
| Path | Contents |
|---|---|
fxmanifest.lua, config.lua
|
Resource manifest and all tunable settings |
server/database.lua |
Auto-creates all required tables on first start |
server/main.lua |
Core cash/bank engine, account persistence, /balance, /pay
|
server/banking.lua |
ATM deposit/withdraw logic, /addmoney
|
server/jobs.lua |
Job assignment, /job, /setjob, automatic paycheck loop |
server/business.lua |
Shop stock seeding, purchase handling, /restock
|
client/main.lua, client/atm.lua, client/business.lua
|
In-world markers, E-to-interact, NUI triggers |
html/ |
Self-contained NUI — no external fonts or CDN dependencies |
README.md |
Full setup and configuration instructions |
Requirements
- FiveM server (Cerulean fxmanifest)
- oxmysql — the only dependency
- A MySQL or MariaDB database (whatever oxmysql is already pointed at)
Compatibility
- Framework: None required. Runs standalone.
- Also works on: ESX, QBCore, or QBox servers that want an independent economy layer separate from the framework's built-in money system.
-
Inventory: Any. A single client event hook (
fro-economy:client:itemReceived) is where you connect your inventory of choice — three lines of code, documented in the README.
Setup Summary
- Place the resource in your
resourcesfolder. -
ensure oxmysqlbeforeensure fro-economyinserver.cfg. - Start the server — tables are created automatically, no SQL import needed.
- Add
add_ace group.admin fro-economy.admin allowtoserver.cfgfor staff access to admin commands. - Edit
config.luato set your own ATM locations, job list, and shop inventory.
Full step-by-step instructions, every export signature, and the inventory integration snippet are in the included README.
Commands Reference
| Command | Access | Description |
|---|---|---|
/balance |
All players | Shows current cash and bank balance |
/pay [id] [amount] |
All players | Sends cash to another online player |
/job |
All players | Shows current job, grade, and salary |
/setjob [id] [job] [grade] |
Admin | Assigns a job and grade to a player |
/addmoney [id] [amount] [cash|bank] |
Admin | Grants funds to a player |
/restock [businessId] [item] [amount] |
Admin | Adds stock to a shop item |
Server-Side Exports
exports['fro-economy']:GetMoney(source)
exports['fro-economy']:GetCash(source)
exports['fro-economy']:GetBank(source)
exports['fro-economy']:AddCash(source, amount, reason)
exports['fro-economy']:RemoveCash(source, amount, reason)
exports['fro-economy']:AddBank(source, amount, reason)
exports['fro-economy']:RemoveBank(source, amount, reason)
exports['fro-economy']:GetIdentifier(source)
exports['fro-economy']:SetJob(source, job, grade)
Known Limitations
-
/payrequires both players to be online — it doesn't do an offline lookup by identifier (extendable if you need it; the query pattern is already in the code). - No built-in inventory system by design — see the integration hook above.
Support & Licensing
[Fill in before publishing: support channel (Discord/ticket link), license terms (single-server / unlimited / resale rights), refund policy, and price.]
Version: 1.0.0 Author: FroDevelopment