Resourcesdnd_economyInstallation
Installation
Last updated on
- Drop
dnd_economyinto your resources folder. - Install the required dependencies — see Dependencies.
- Import the database schema — see Database Setup (or just start the resource once; it auto-migrates on boot).
- Ensure the database migrations are applied. The resource includes migrations for all schema updates — no manual SQL needed. On first start,
server/migrator.luaruns automatically and marks them applied. See Database Setup for details. - Register each agency's stash in your inventory (
dnd_eco_stash_<agencyId>by default — seeConfig.Agencies[id].stash.id) if your inventory resource requires stashes to be pre-registered. - Configure
config.lua— see Configuration. - Add
ensure dnd_economyto yourserver.cfg, after its dependencies.
Important: refresh, not just restart
When you pull a new version that adds or removes server-side Lua files (like v2.0.0, which added server/budget.lua and server/tax.lua), FiveM's manifest cache must be cleared before the resource loads those new files. Use:
refresh
ensure dnd_economyA plain restart is not enough — it will load an outdated list of scripts and cause silent runtime errors (global variables like Tax or Budget staying nil). This only happens when the file list in fxmanifest.lua changes; routine config updates don't require it.
Optional integrations
All optional — the resource works without any of them, just with the related feature disabled.
Renewed-Banking— required for the Buy flow (Config.Banking.Enabled = true). Without it, buying stays effectively disabled (checked at the top of the purchase transaction) rather than silently discarding revenue. It's also what a bank-paid Sell/Buy mirrors its statement entry into (personal balance moves happen through the framework bridge either way — cash or bank).dnd_jobmanagement— required forConfig.Printer = 'dnd_jobmanagement'(auto-queues a printable document when staff accept a Buy order). SetConfig.Printer = 'none'if you don't run it.dnd_phone— if running, a bank-paid Sell/Buy also gets logged into the player's own mBanking → History viadnd_phone'sexports.dnd_phone:RecordBankHistory, so it shows up on their phone, not just their balance. Silently skipped ifdnd_phoneisn't installed.