Installation

Dependencies

  • frameworks - qb, esx (one of them is required)

  • inventories - qb, ox (one of them is required)

    • requires inventory with metadata support

  • targets - qb, ox (optional, resource works without target systems)

Installation Steps

1. Install Dependencies

Ensure all dependencies are installed and working.

2. Download ic_moneywash

Place the ic_moneywash folder in your server's resources directory.

3. Add to server.cfg

# Load dependencies first
ensure oxmysql
ensure ox_lib  
ensure your_framework
ensure your_inventory
ensure your_target_system
ensure ic_lib

# Then load ic_moneywash
ensure ic_moneywash

4. Configure Database

The script will automatically create required tables on first start:

  • trapphone_players - Player money data and statistics

  • trapphone_transactions - Transaction history logging

No manual database setup required.

5. Add Required Items

Please, keep in mind that all items are editable in configuration, so you aren't forced to use our items we set for it!

Add these items to your inventory system (optional):

qb-core/shared/items.lua
-- Trap phone item
['trapphone'] = {
    ['name'] = 'trapphone',
    ['label'] = 'Trap Phone',
    ['weight'] = 200,
    ['type'] = 'item',
    ['image'] = 'trapphone.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['description'] = 'Encrypted phone for underground operations'
},

-- Cash bag item  
['cashbag'] = {
    ['name'] = 'cashbag',
    ['label'] = 'Cash Bag',
    ['weight'] = 1000,
    ['type'] = 'item',
    ['image'] = 'cashbag.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['description'] = 'Heavy bag full of cash'
},

-- Dirty money item (if not already present)
['markedbills'] = {
    ['name'] = 'markedbills',
    ['label'] = 'Marked Bills',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'markedbills.png',
    ['unique'] = false,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['description'] = 'Suspicious looking money'
}

6. Add Item Images

Place these image files in your inventory images folder:

  • trapphone.png

  • cashbag.png

  • markedbills.png (if not present)

Verification

Test Installation

  1. Start your server

  2. Check console for any errors

  3. Verify database tables were created

Common Issues

  • Script not starting: Check dependency load order in server.cfg

  • Database errors: Ensure oxmysql is properly configured

  • Items not working: Verify items are added to your framework's item system

Last updated