NR_MoneyWash
Portable washing machine system with a custom React UI, key management, and configurable themes.
Features
- Portable washing machines - Place anywhere in the world
- Custom React UI - Sleek animated menus, progress bars, and notifications
- Configurable themes - Fully customizable UI colors via config.lua
- Key management - Share access with other players
- Lock system - Secure your machine from unauthorized users
- Progress tracking - Real-time wash tracking with timestamps
- Pick up system - Retrieve your machine when done
- Anti-cheat protection - Server-side validation on all actions
Dependencies
| Resource | Description | Required |
|---|---|---|
| ox_inventory | Inventory system | Yes |
| ox_target | Targeting system | Yes |
| oxmysql | Database | Yes |
Installation
Step 1: Download & Build
Download NR_MoneyWash from your Tebex purchase and install it into your server resources:
server/
└── resources/
└── [nightrider]/
└── NR_MoneyWash/
Step 2: Database Setup
The script automatically creates the required database table on first start. No manual SQL import needed.
Step 3: Add Inventory Item
Open ox_inventory/data/items.lua and add the washing machine item:
['washing_machine'] = {
label = 'Portable Washing Machine',
weight = 25000,
stack = false,
close = true,
description = 'A portable washing machine used to clean dirty money.',
client = {
image = 'washing_machine.png',
},
server = {
export = 'NR_MoneyWash.washing_machine'
}
},
Step 4: Add Item Image
Copy install/washing_machine.png from the resource folder to your ox_inventory/web/images/ folder.
Step 5: server.cfg
Add the resource to your server configuration:
ensure NR_MoneyWash
Step 6: Restart
Restart both resources to apply changes:
restart NR_MoneyWash
restart ox_inventory
Make sure ox_inventory, ox_target, and oxmysql are all started before NR_MoneyWash in your server.cfg.
Configuration
Theme Colors
Customize the UI theme by editing config.lua:
theme = {
primary = '#00FFFF', -- Main accent color (Cyan)
background = '#1a1a2e', -- Dark background
backgroundSecondary = '#16213e', -- Secondary background
text = '#ffffff', -- Main text color
textSecondary = '#a0a0a0', -- Secondary text color
success = '#00ff88', -- Success notifications
error = '#ff4757', -- Error notifications
warning = '#ffa502', -- Warning notifications
},
Popular theme colors:
| Color | Hex Code |
|---|---|
| Cyan (default) | #00FFFF |
| Purple | #9b59b6 |
| Green | #2ecc71 |
| Red | #e74c3c |
| Orange | #f39c12 |
| Blue | #3498db |
General Settings
dropCheaters = false, -- Kick players attempting exploits
dirtyMoneyItem = 'black_money', -- Item name for dirty money
useSlider = true, -- Use slider for wash amount input
sliderStep = 10, -- Slider increment amount
loadTime = 3, -- Animation duration in seconds
progressCircle = false, -- Use circle instead of bar progress
Washing Machine Settings
washingMachines = {
['washing_machine'] = {
model = `m23_2_prop_m32_prtmachine_dryer_op`,
label = 'Washing Machine',
msecPer = 100, -- 100ms per $1 (1000 = $10/sec)
washTax = 0.35, -- 35% tax rate
},
}
Usage
1. Placing a Machine
Use the washing_machine item from your inventory. Aim where you want to place it, use scroll up/down to rotate, and press E to confirm placement.
2. Starting a Wash
Target the placed machine with ox_target and select "Manage Washing Machine". Navigate to "Wash Status" then "Start Wash". Enter the amount of dirty money to wash and confirm.
3. Collecting Clean Money
Once the wash completes, target the machine again and go to "Wash Status". Click "Unload Clean Money" to collect your funds (minus the tax rate).
4. Managing Access
- Lock/Unlock - Secure your machine from other players
- Add keys - Grant access to trusted players
- Remove keys - Revoke access when needed
5. Picking Up
Only the machine owner can pick it up. If there is an active wash in progress, the dirty money will be refunded to your inventory.
Troubleshooting
UI Not Showing
- Verify
web/build/index.htmlexists in the resource folder - Restart the resource with
restart NR_MoneyWash
Theme Colors Not Working
- Make sure
primaryRgbmatchesprimarycolor in RGB format - Restart the resource after changing config
Item Not Working
- Verify the item exists in
ox_inventory/data/items.lua - Check the export path matches your resource folder name
- Restart ox_inventory after adding the item
Migrating from v1.x
If you're upgrading from the original ox_lib version:
- Backup your current installation
- The database is fully compatible — no changes needed
- Replace the resource files and restart
Support
For paid script support, open a ticket in our Discord server for priority assistance.