Documentation
DiscordStore
  • STG
    • 🖐️Welcome!
  • 📕Guide
    • 🪝Create Discord Webhook
    • 🤖Create Discord Bot Token
  • Scripts
    • 🍕Pizza Maker
      • 💡Installation
      • ⚙️Configuration
    • ♟️Chess
      • 💡Installation
      • ⚙️Configuration
    • 📱Basic Radio
      • 💡Installation
      • ⚙️Configuration
    • 🗺️Treasure Map
      • 💡Installation
      • ⚙️Configuration
    • 🏦Advanced Banking
      • 💡Installation
      • ⚙️Configuration
      • ⬆️Exports
    • 🤳Radio System
      • 💡Installation
      • ⚙️Configuration
    • 🥇Gold Panning
      • 💡Installation
      • ⚙️Configuration
    • 🖥️Complex Hud
      • 💡Installation
      • ⚙️Configuration
    • 💃Emote Menu
      • 💡Installation
      • ⚙️Configuration
    • 💴Money Wash
      • 💡Installation
      • ⚙️Configuration
    • 🚘Auto Pilot
      • 💡Installation
      • ⚙️Configuration
    • ⛽Fuel
      • 💡Installation
      • ⚙️Configuration
    • 🫂Multicharacter
      • 💡Installation
      • ⚙️Configuration
    • 🛒3 in 1 Shop
      • 💡Installation
      • ⚙️Configuration
    • 🍎Fruit Job
      • 💡Installation
      • ⚙️Configuration
    • 🍾Bottle Spin
      • 💡Installation
      • ⚙️Configuration
    • 🍕Pizza Delivery
      • 💡Installation
      • ⚙️Configuration
    • 📦Blind Fold
      • 💡Installation
      • ⚙️Configuration
    • 🔫Weapon Shop
      • 💡Installation
      • ⚙️Configuration
    • 💻Hud
      • 💡Installation
      • ⚙️Configuration
    • 🔃Loading Screen
      • 💡Installation
      • ⚙️Configuration
    • ⌚Smart Watch
      • 💡Installation
      • ⚙️Configuration
    • 🎮Hand Console 2
      • 💡Installation
      • ⚙️Configuration
    • 👒Appearance
      • 💡Installation
      • ⚙️Configuration
    • 🃏Card Game V2
      • 💡Installation
      • ⚙️Configuration
    • 🚗Simple Garage
      • 💡Installation
      • ⚙️Configuration
    • 🎸Busker
      • 💡Installation
      • ⚙️Configuration
    • 🔫Raider
      • 💡Installation
      • ⚙️Configuration
    • 🗃️Wallet
      • 💡Installation
      • ⚙️Configuration
    • 🐔Butcher
      • 💡Installation
      • ⚙️Configuration
    • 🃏Card Game
      • 💡Installation
      • ⚙️Configuration
    • 🎮Hand Console
      • 💡Installation
      • ⚙️Configuration
    • 🎲Rubik Cube
      • 💡Installation
      • ⚙️Configuration
    • 👮Jail
      • 💡Installation
      • ⚙️Configuration
    • 🖼️Custom Frame
      • 💡Installation
      • ⚙️Configuration
    • 🎮Gamepad
      • 💡Installation
      • ⚙️Configuration
    • 🏦Banking
      • 💡Installation
      • ⚙️Configuration
    • 🗺️Pause Menu
      • 💡Installation
      • ⚙️Configuration
    • 👒Clothing Store
      • 💡Installation
      • ⚙️Configuration
    • 🚙Vehicle Shop
      • 💡Installation
      • ⚙️Configuration
    • 🧬Character Creator
      • 💡Installation
      • ⚙️Configuration
    • 🛒Purchaseable Market
      • 💡Installation
      • ⚙️Configuration
    • 📄Billing
      • 💡Installation
      • ⚙️Configuration
  • 🎸Copy of Busker
    • 💡Installation
    • ⚙️Configuration
Powered by GitBook
On this page
  1. Scripts
  2. Money Wash

Configuration

Configuration guide of Money Wash Script.


Money Wash Script Configuration Guide

This guide provides detailed instructions for configuring the STG Money Wash Script for FiveM. The script allows players to launder their black money at designated locations, with flexible options for framework detection, police requirements, and interaction types.


Main Configuration

Config.Framework

  • Description: This setting determines which framework the script will use. You can choose between "esx", "qb", or "auto". If set to "auto", the script will automatically detect the active framework on your server, providing flexibility for different setups.

  • Example:

    Config.Framework = "auto" -- auto, esx, or qb

Config.Locales

  • Description: This option allows you to choose the language for the script. The available options are 'EN' (English), 'DE' (German), 'FR' (French), and 'SP' (Spanish).

  • Example:

    Config.Locales = 'EN' -- EN, DE, FR, SP

Config.InteractType

  • Description: Choose the interaction method players will use for interacting with the money wash locations. Options include text UI, draw text, and target interactions. You can enable or disable each type as per your preference.

  • Example:

    Config.InteractType = {
        ["textui"]   = { useThis = true },
        ["drawtext"] = { useThis = false },
        ["target"]   = { useThis = false }
    }

Money Laundering Settings

Config.BlackMoneyItem

  • Description: Defines the item used as black money in your server. Players will need this item to launder money.

  • Example:

    Config.BlackMoneyItem = "black_money"

Config.MinPolice

  • Description: Set the minimum number of police officers required to be online for the laundering process to be available. If fewer police are online, players won't be able to use the laundering locations.

  • Example:

    Config.MinPolice = 0

Config.TimePerAmount

  • Description: Defines the amount of time (in seconds) it takes to launder a specific amount of black money.

  • Example:

    Config.TimePerAmount = 0.1 -- Time in seconds per amount

Locations

Config.EnterLocations

  • Description: This section defines the entrance locations for laundering black money. You can configure NPC (ped) settings, blip settings, and more for each location.

  • Example:

    Config.EnterLocations = {
        [1] = {
            pedSettings = { coords = vector4(-481.3524, -63.7307, 38.9942, 357.0594), model = "a_m_o_ktown_01" },
            blipSettings = { enabled = true, id = 500, scale = 0.65, colour = 12, displayName = "Money Wash" }
        }
    }

Config.Locations

  • Description: These are the actual money laundering locations where players can go to clean their black money. You can add or modify these coordinates to match the locations on your server.

  • Example:

    Config.Locations = {
        [1] = vector4(1126.9615, -3194.2407, -40.3970, 0.1551),
        [2] = vector4(1125.5397, -3194.2898, -40.3974, 359.3980),
        [3] = vector4(1123.7719, -3194.2781, -40.3973, 351.9370)
    }

Police Jobs

Config.PoliceJobs

  • Description: This table defines the police jobs that will be counted towards the police minimum requirement. You can add additional police job titles if needed.

  • Example:

    Config.PoliceJobs = {
        ["police"] = true
    }

Notifications

Config.Notification

  • Description: This function handles how notifications are displayed to players. It is compatible with both ESX and QBCore notifications, and you can customize how these notifications are triggered.

  • Example:

    function Config.Notification(text, server, source)
        if server then
            TriggerClientEvent('esx:showNotification', source, text)
            TriggerClientEvent('QBCore:Notify', source, text)
        else
            TriggerEvent('esx:showNotification', text)
            TriggerEvent('QBCore:Notify', text)
        end
    end

Framework Detection

getFramework()

  • Description: This function detects and returns the active framework (ESX or QBCore). If Config.Framework is set to "auto", the script will automatically check which framework is running and return the corresponding framework object.

  • Example:

    function getFramework()
        if Config.Framework == "esx" then
            return exports['es_extended']:getSharedObject(), "esx"
        elseif Config.Framework == "qb" then
            return exports["qb-core"]:GetCoreObject(), "qb"
        elseif Config.Framework == "auto" then
            if GetResourceState('qb-core') == 'started' then
                return exports["qb-core"]:GetCoreObject(), "qb"
            elseif GetResourceState('es_extended') == 'started' then
                return exports['es_extended']:getSharedObject(), "esx"
            end
        end
    end

PreviousInstallationNextAuto Pilot

Last updated 6 months ago

💴
⚙️