😑
RAINMAD Documentation
WebsiteStoreDiscordYouTube
  • Welcome to RAINMAD Scripts
  • INFORMATION
    • FAQ
    • Support and Assistance
    • Discord Roles
    • How to Update Your Asset
  • CFX Auth system
    • FiveM Asset Escrow System
  • Development Guide
    • Common Issues
    • How to Add Webhooks
    • Target Options Configuration
    • How to Translate Your Script
    • How to Integrate Your Custom Notification Script
    • How to Change the Black Money Name
    • How to Add an Item
    • How to Change the Dispatch
    • Framework Selection and Configuration
    • Finding Item Images
  • RESOURCES
    • Cargo Ship Heist
      • Installation
      • Dependencies
      • Translate Strings
      • Discord Log
      • Configuration
      • Exports
    • Below the Vault Heist
      • Installation
    • NPC Mechanic
      • Installation
      • Configuration Guide
    • Cash Exchange Heist
      • Installation
      • Dependencies
    • Drugs V: Grow, Cook & Space!
      • Installation
      • Configuration Guide
    • Drugs V: Laboratories
      • Installation
      • Configuration Guide
    • Drugs V: Goods Deal
      • Installation
      • Configuration Guide
    • Drugs V: Business Labs
      • Installation
      • Configuration Guide
    • Drugs V: Effects
      • Installation
      • Configuration Guide
      • Exports
    • Drugs V: Money Laundering
      • Installation
      • Configuration Guide
    • Bank Truck Robbery - 4 in 1!
      • Installation
      • Dependencies
      • Translate Strings
      • Discord Log
      • Events & Exports
      • Disable Mission NPC
    • House Robbery with Welding Minigame
      • Installation
      • Dependencies
      • Inventory Integration
      • Translate Strings
      • Discord Log
      • Creating a House for Robbery
      • Events & Exports
      • Disable Mission NPC
    • Lootbag
      • Installation
    • Bounty Board
      • Installation
    • Chopshop with Welding Minigame
      • Installation
      • Dependencies
      • Translate Strings
      • Discord Log
      • Events & Exports
      • Disable Mission NPC
    • Scenes: Draw everywhere
      • Installation
      • Add Text Font
      • Events & Exports
    • Vault Heist
      • Installation
      • Vehicle Mods
      • Dependencies
    • Barge Heist
      • Installation
      • Dependencies
    • Towtruck + Missions
      • Installation
    • Zombies & Dungeon
      • Installation
      • Rarity System
    • Gangs - Territory, Wars & Tribute Zones!
      • Installation
      • Add Gang & Tribute Zone
      • Events & Exports
      • Gang System for ESX
    • Camper V: Drug Caravans
      • Installation
      • Dependencies
    • Realistic Airdrop
      • Installation
    • ATM Robbery - 4 in 1!
      • Installation
    • Bobcat Security Heist
      • Installation
      • Dependencies
    • Minigame Bundle
      • Installation
      • Minigame Exports
      • Translate Strings
    • Weapon V: Realism
      • Installation
    • Boombox with Watch Party
      • Installation
      • Youtube API Key
      • Exports
    • Drop and Dead Info.
      • Installation
    • Throw Everything
      • Installation
      • Useable Items
      • Exports
      • QBCore Compatibility
      • ESX Compatibility
    • Police Riot with Interior
      • Installation
      • Dependencies
    • Dialog with NPC
      • Installation
    • Gun Store Heist
      • Installation
      • Dependencies
    • Emoji V: Share Feelings
      • Installation
    • Illegal Corners: Selling Goods
      • Installation
      • Adding a New Corner
    • Decal V: Graffiti & Vehicle Sticker
      • Installation
      • Custom Decal
      • Events & Exports
    • Hacker V: Become Hacker
      • Installation
      • Custom Hack
      • Functions & Events
    • Weed Shop Heist
      • Installation
      • Dependencies
    • Jailbreak
      • Installation
      • Dependencies
    • Vangelico Heist Final
      • Installation
      • Dependencies
    • Pets
      • Installation
      • QBCore Compatible
    • Artifact Heist
      • Installation
    • Betta Heist
      • Installation
    • Oil Rig Heist
      • Installation
      • Dependencies
    • Fleeca Heist Final
      • Installation
      • Dependencies
    • Deluxe Car Heist
      • Installation
    • Yacht Heist
      • Installation
    • Paleto Heist
      • Installation
    • Union Heist
      • Installation
    • Shop Robbery
      • Installation
    • Drug Boat Heist
      • Installation
    • Underground Heist
      • Installation
      • Dependencies
    • Van Heist
      • Installation
      • Dependencies
    • Pacific Heist
      • Installation
      • Dependencies
    • Train Heist
      • Installation
    • Humane Labs Heist
      • Installation
    • Vangelico Heist
      • Installation
    • Fleeca Heist
      • Installation
    • Casino Heist
      • Installation
      • Dependencies
      • Compatible For Rcore
    • Art Heist
      • Installation
      • Dependencies
    • Kidnapping
      • Installation
    • Graffiti War
      • Installation
Powered by GitBook
On this page
  • How to Customize the Black Money Name (Old & New Script Versions)
  • Newer Scripts
  • Step 1: Configure shared/config.lua
  • Step 2: Update Logic in editable_server.lua
  • ESX Example
  • Older Scripts
  • Step 1: Open server.lua
  • Step 2: QBCore Integration
  • Step 3: ESX Integration
  1. Development Guide

How to Change the Black Money Name

How to Customize the Black Money Name (Old & New Script Versions)

In our scripts, black money is typically referred to as markedbills. However, you can easily rename it to black_money, dirtymoney, or anything else depending on your framework or preference. This guide walks you through the customization steps for both old and new script versions, including examples for QBCore and ESX frameworks.


Newer Scripts

In newer versions of our scripts, black money behavior is centralized in configuration and logic files such as shared/config.lua and editable_server.lua.

Step 1: Configure shared/config.lua

Navigate to shared/config.lua and locate the following configuration block:

lConfig.moneyOptions = {
    blackMoney = false,
    blackMoneyName = "markedbills", -- if you are using ESX use "black_money", for QBCore use "markedbills"
    blackMoneyIsItem = true,
    useMetadataForBlackMoney = true,
    moneyName = "money",
    moneyIsItem = false,
}

Edit the following keys:

  • blackMoneyName: Change this to "black_money", "dirtymoney", or your preferred name.

  • blackMoneyIsItem: Set to false if you're using an account-based system (like ESX), or true if it's an item (like QBCore).

  • useMetadataForBlackMoney: Set to true only if you're using metadata-based tracking.

Step 2: Update Logic in editable_server.lua

Locate and modify the addBlackMoney function. Below are examples for both frameworks:

QBCore Example

self.addBlackMoney = function(amount)
    Player.Functions.AddItem('black_money', amount)
end

ESX Example

self.addBlackMoney = function(amount)
    return Player.addAccountMoney("black_money", amount)
end

πŸ’‘ Make sure the blackMoney-related config options match the logic used here (item vs. account).


Older Scripts

In older versions, black money handling is directly embedded inside the server.lua file.

Step 1: Open server.lua

Open your older script folder and locate server.lua.

Step 2: QBCore Integration

Search for code that looks like this:

local info = {
    worth = count
}
player.Functions.AddItem('markedbills', 1, false, info)
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['markedbills'], "add")

Replace with:

player.Functions.AddItem('black_money', count)

🧹 You can remove the info table and TriggerClientEvent line if you’re not using metadata or item boxes.

Step 3: ESX Integration

Search for:

Player.addAccountMoney("black_money", count)

If you want to rename black_money to something else (e.g., dirtymoney), simply update this line:

Player.addAccountMoney("dirtymoney", count)

Be sure to use this name consistently across all functions and config files.


Final Checklist

  • πŸ” Restart your server after making changes.

  • πŸ§ͺ Test black money creation (e.g., drug sale or robbery reward).

  • πŸ“¦ Ensure the new item or account name is recognized in your inventory or UI.

  • πŸ—‚ Use consistent naming across all scripts, configs, and notifications.


πŸ›  Troubleshooting

Problem
Solution

Black money not updating

Check all instances where the original name was used.

Inventory errors

Make sure blackMoneyIsItem and blackMoneyName are properly set.

Console warnings

Verify syntax and correct function usage per your framework.

PreviousHow to Integrate Your Custom Notification ScriptNextHow to Add an Item

Last updated 17 days ago