> For the complete documentation index, see [llms.txt](https://shift-studios.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shift-studios.gitbook.io/docs/new/editor-37.md). Agents can also search and read this documentation through its [MCP server](https://shift-studios.gitbook.io/docs/~gitbook/mcp).

# Money Laundering

Transform Your Server With Shift Studios — Powerful, Optimized, And Reliable Resources Built To Improve Every Experience.

<figure><img src="https://4062160621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgqh3gjuJzDAWNXTD9sEE%2Fuploads%2FA0FlUCqKAAO0P8UzbiP8%2F2bb5f7d1-f2d7-4fc3-8b53-b36dc328fcf6.jpg?alt=media&amp;token=e0c022c1-20b2-4beb-a8dc-e00b2df13b57" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Money Laundering

Read Everything Below To Install
{% endstep %}

{% step %}

### Drag & Drop

Drag & Drop The Resource Into Your FiveM Server
{% endstep %}

{% step %}

### Ensure The Resource

Make Sure To Ensure shift-laundering In Your Server CFG.
{% endstep %}

{% step %}

### Install The SQL Table

{% code expandable="true" %}

```sql
CREATE TABLE IF NOT EXISTS `shift_laundering_washes` (
  `id` varchar(64) NOT NULL,
  `name` varchar(100) NOT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT 1,
  `data` longtext NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

```

{% endcode %}
{% endstep %}

{% step %}

### Configure Resource

Make Sure To Configure The Resource To Your Liking

You Can Configure Your Discord Logs In server/config.discord.lua

{% code expandable="true" %}

```lua
-- ⚫ ███████╗██╗  ██╗██╗███████╗████████╗    ███████╗████████╗██╗   ██╗██████╗ ██╗ ██████╗ ███████╗ ⚫
-- ⬛ ██╔════╝██║  ██║██║██╔════╝╚══██╔══╝    ██╔════╝╚══██╔══╝██║   ██║██╔══██╗██║██╔═══██╗██╔════╝ ⬛
-- ⚫ ███████╗███████║██║█████╗     ██║       ███████╗   ██║   ██║   ██║██║  ██║██║██║   ██║███████╗ ⚫
-- ⬛ ╚════██║██╔══██║██║██╔══╝     ██║       ╚════██║   ██║   ██║   ██║██║  ██║██║██║   ██║╚════██║ ⬛
-- ⚫ ███████║██║  ██║██║██║        ██║       ███████║   ██║   ╚██████╔╝██████╔╝██║╚██████╔╝███████║ ⚫
-- ⬛ ╚══════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝       ╚══════╝   ╚═╝    ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝ ⬛

Config = {}

Config.Debug = false

-- auto: qbox -> qbcore -> esx -> standalone
Config.Framework = 'auto' -- auto, qbox, qbcore, esx, standalone

-- auto: ox_inventory -> framework inventory
Config.Inventory = 'auto' -- auto, ox_inventory, qb_inventory, esx, custom

-- auto: ox_target -> qb-target -> qtarget -> none
Config.Target = 'auto' -- auto, ox_target, qb-target, qtarget, none

-- Notification provider.
Config.Notification = 'ox_lib' -- ox_lib, qbox, qbcore, esx, okok, mythic, wasabi, custom, auto

-- Text UI provider used by locations configured for Text UI / Both.
Config.TextUI = 'ox_lib' -- ox_lib, qbcore, esx, native, custom

Config.Theme = {
    -- Monochrome Shift Studios UI accent.
    Primary = '#f4f4f5'
}

Config.Commands = {
    Creator = 'washcreator',
    Manager = 'washmanager'
}

Config.Permissions = {
    -- ace_or_framework checks configured ACE permissions first, then framework groups.
    Mode = 'ace_or_framework', -- ace, framework, ace_or_framework
    AcePermissions = {
        'shift.laundering.admin',
        'group.admin',
        'group.god'
    },
    FrameworkGroups = {
        admin = true,
        superadmin = true,
        god = true
    }
}

Config.Notifications = {
    Title = 'Laundering',
    Position = 'center-left', -- Ox Lib uses 'center-left' (not 'center=left').
    Duration = 5000
}

Config.TextUISettings = {
    Position = 'right-center',
    Key = 38, -- E
    KeyLabel = 'E'
}


Config.Placement = {
    -- Maximum distance from the player's camera to the surface under the mouse.
    MaxDistance = 20.0,
    PropPreviewAlpha = 190,

    -- Mouse wheel / Left-Right arrow turning speed in degrees.
    RotationStep = 5.0,
    FineRotationStep = 1.0, -- Hold Shift while rotating.

    -- Point placement marker color and size (the same UI is used for all types).
    MarkerScale = 0.18,
    MarkerColor = { 0, 1, 252, 180 }
}

Config.SpawnGrounding = {
    -- Peds/props created during a restart can exist before collision at their saved
    -- location is streamed. They are corrected once a player gets near the wash.
    StreamDistance = 125.0,
    CollisionTimeoutMs = 3000
}

Config.Security = {
    MaxUseDistance = 4.0,
    FinishToleranceMs = 500,
    SessionExpireSeconds = 180,
    AdminActionCooldownMs = 250,
    PlayerActionCooldownMs = 250,
    MaximumAbsoluteWash = 1000000000
}

Config.Defaults = {
    Name = 'Money Wash',
    Type = 'point', -- point, prop, ped
    Enabled = true,

    Interaction = {
        Method = 'target', -- target, textui, both
        Label = 'Wash Money',
        Radius = 1.6,
        DrawDistance = 3.0,
        TargetIcon = 'fas fa-money-bill-transfer',
        Text = '[E] Wash Money'
    },

    Entity = {
        -- Separate defaults prevent a washer prop model from ever becoming the default ped model.
        PropModel = 'prop_washer_01',
        PedModel = 'a_m_m_business_01',
        Heading = 0.0,
        Freeze = true,
        Invincible = true,
        Scenario = 'WORLD_HUMAN_CLIPBOARD'
    },

    Washing = {
        MinAmount = 500,
        MaxAmount = 100000,
        TaxPercent = 15,
        DurationSeconds = 10,
        CooldownSeconds = 60,
        Presets = { 1000, 5000, 10000, 25000 },
        ShowMaxPreset = true,

        -- auto resolves ESX black_money as an account and QB/Qbox as an item.
        DirtyMoney = {
            Type = 'auto', -- auto, account, item
            Name = 'black_money'
        },

        -- auto resolves framework cash where possible; standalone uses an item.
        Payout = {
            Type = 'auto', -- auto, account, item
            Name = 'cash'
        }
    },

    Access = {
        JobsEnabled = false,
        Jobs = {},
        GangsEnabled = false,
        Gangs = {},
        ItemEnabled = false,
        Item = '',
        ItemAmount = 1
    },

    Blip = {
        Enabled = false,
        Label = 'Money Wash',
        Sprite = 500,
        Color = 3,
        Scale = 0.7,
        ShortRange = true
    }
}

-- These are inserted only when the database does not already contain the same IDs.
Config.DefaultLocations = {
    {
        id = 'grove_wash',
        name = 'Grove Money Wash',
        type = 'ped',
        enabled = true,
        coords = { x = -619.0565, y = -1622.0486, z = 33.0105, w = 180.0 },
        interaction = {
            method = 'target',
            label = 'Wash Money',
            radius = 1.6,
            drawDistance = 3.0,
            targetIcon = 'fas fa-money-bill-transfer',
            text = '[E] Wash Money'
        },
        entity = {
            model = 'a_m_m_business_01',
            heading = 180.0,
            freeze = true,
            invincible = true,
            scenario = 'WORLD_HUMAN_CLIPBOARD'
        },
        washing = {
            minAmount = 500,
            maxAmount = 100000,
            taxPercent = 15,
            durationSeconds = 10,
            cooldownSeconds = 60,
            presets = { 1000, 5000, 10000, 25000 },
            showMaxPreset = true,
            dirtyMoney = { type = 'auto', name = 'black_money' },
            payout = { type = 'auto', name = 'cash' }
        },
        access = {
            jobsEnabled = false,
            jobs = {},
            gangsEnabled = false,
            gangs = {},
            itemEnabled = false,
            item = '',
            itemAmount = 1
        },
        blip = {
            enabled = false,
            label = 'Grove Money Wash',
            sprite = 500,
            color = 3,
            scale = 0.7,
            shortRange = true
        }
    }
}

-- Use these hooks when Config.Inventory / Notification / TextUI is set to custom.
Config.Custom = {
    HasItem = function(source, item, amount)
        return false
    end,
    RemoveItem = function(source, item, amount)
        return false
    end,
    AddItem = function(source, item, amount)
        return false
    end,
    Notify = function(data)
        -- Client-side custom notification hook.
    end,
    ShowTextUI = function(text)
        -- Client-side custom text UI hook.
    end,
    HideTextUI = function()
        -- Client-side custom text UI hook.
    end
}

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

Ensure Everything Is Working Well & Enjoy !!
{% endstep %}
{% endstepper %}
