FearlessStudios

Configure

Install and configure FS-Money

Requirements

  • oxmysql
  • FS-Lib

Optional:

  • LB Phone (for the FS-Money app integration)
  • A target system if you enable Config.useTargetSystem

Installation

  1. Place FS-Money in your resources folder.
  2. Import the SQL files (see Database below).
  3. Add ensure FS-Money to server.cfg.
  4. Configure config.lua and restart the resource.

Database

Import both SQL files from the resource:

  • fs_money.sql creates the main balances table.
  • fs_money_txn.sql creates the transaction history table.

If you skip fs_money_txn.sql, transaction history will not be recorded.

Core settings

Prop

Type

Manual money permissions

Prop

Type

Paychecks

Config.Paychecks controls automatic pay:

Prop

Type

Starting balances

Prop

Type

Notifications and phone

Prop

Type

FS-MoneyApp (LB Phone)

The FS-MoneyApp is a separate resource you receive alongside FS-Money in the customer portal. Download FS-MoneyApp, add it to your resources folder, and drag-and-drop the app into LB Phone. Then set Config.useLBPhoneIntegration = true.

Download FS-MoneyApp

ATM settings

Config.ATM controls ATM behavior:

Prop

Type

Player payments

Prop

Type

Client update hook

Config.ClientUpdate lets you drive a custom HUD:

Prop

Type

Money HUD

Config.MoneyHUD controls the built-in HUD:

Prop

Type

Wire transfer

Prop

Type

Ledger logging

Config.LedgerCurrencies controls which balances are logged to fs_money_txn.

Prop

Type

Commands

Self commands (only when enabled):

  • /setcash, /setbank, /setdirtymoney, /setpokerchips

Player-to-player:

  • /paycash (cash)
  • /paytap (bank)
  • /paydirtymoney (dirty cash)
  • /paychips (poker chips)

Admin (requires Config.adminAcePerm):

  • /setplayercash, /setplayerbank, /setplayerdirtymoney, /setplayerpokerchips

UI and HUD:

  • /banking opens the banking dashboard.
  • /togglemoneyhudtheme toggles HUD theme.

Exports

See Exports for server and client exports.