Server Configuration

The server configuration defines police requirements, cooldowns, item requirements, door controls, and reward settings for the laundromat heist system.

Police Requirements

The requiredPolice setting controls the minimum number of police officers needed to start a heist:

requiredPolice = 0
requiredPolicerequirednumber
The minimum number of police officers that must be online before players can start a heist.

Cooldown Configuration

The cooldown section defines the time restrictions between heist attempts:

cooldown = {
    min = 50,
    max = 70
}
cooldown.minrequirednumber
The minimum cooldown time in minutes between heist attempts.
cooldown.maxrequirednumber
The maximum cooldown time in minutes between heist attempts.

Power Cut Configuration

The powerCut section defines settings for the electrical box hacking:

powerCut = {
    requiredItem = 'hackingdevice',

    doorIds = { 1, 2 },

    removeItem = { 
        onFail = {
            enabled = true,
            chance = 50,
        },

        onUse = {
            enabled = true,
            chance = 10, 
        }
    }
}
powerCut.requiredItemrequiredstring
The item required to perform the power cut action.
powerCut.doorIdsrequiredarray
Array of door IDs that will be unlocked when power is cut.
powerCut.removeItemrequiredtable
Item removal configuration for power cut actions.
powerCut.removeItem.onFail.enabledrequiredboolean
Whether items can be removed on failed power cut attempts.
powerCut.removeItem.onFail.chancerequirednumber
The percentage chance (0-100) of item removal on failed power cut attempts.
powerCut.removeItem.onUse.enabledrequiredboolean
Whether items can be removed on successful power cut attempts.
powerCut.removeItem.onUse.chancerequirednumber
The percentage chance (0-100) of item removal on successful power cut attempts.

Laptop Configuration

The laptop section defines settings for the computer hacking:

laptop = {
    requiredItem = 'laundromat_usb',

    doorIds = { 3 },

    removeItem = { 
        onFail = {
            enabled = true,
            chance = 50,
        },

        onUse = {
            enabled = true,
            chance = 10, 
        }
    }
}
laptop.requiredItemrequiredstring
The item required to perform the laptop hack action.
laptop.doorIdsrequiredarray
Array of door IDs that will be unlocked when laptop is hacked.
laptop.removeItemrequiredtable
Item removal configuration for laptop hack actions.
laptop.removeItem.onFail.enabledrequiredboolean
Whether items can be removed on failed laptop hack attempts.
laptop.removeItem.onFail.chancerequirednumber
The percentage chance (0-100) of item removal on failed laptop hack attempts.
laptop.removeItem.onUse.enabledrequiredboolean
Whether items can be removed on successful laptop hack attempts.
laptop.removeItem.onUse.chancerequirednumber
The percentage chance (0-100) of item removal on successful laptop hack attempts.

Laundromat Configuration

The laundromat section defines settings for washing machine robberies:

laundromat = {
    requiredItem = 'WEAPON_CROWBAR'
}
laundromat.requiredItemrequiredstring
The weapon/item required to break into washing machines.

Rewards Configuration

The rewards section defines the loot that players can obtain from different heist activities:

Laundromat Rewards

laundromat = {
    name = 'black_money',

    amount = {
        min = 1500,
        max = 2500
    }
}
rewards.laundromat.namerequiredstring
The item name that washing machines will contain.
rewards.laundromat.amount.minrequirednumber
The minimum amount of the reward item.
rewards.laundromat.amount.maxrequirednumber
The maximum amount of the reward item.

Safe Rewards

safe = {
    name = 'black_money',

    amount = {
        min = 25000,
        max = 35000
    }
}
rewards.safe.namerequiredstring
The item name that the safe will contain.
rewards.safe.amount.minrequirednumber
The minimum amount of the reward item.
rewards.safe.amount.maxrequirednumber
The maximum amount of the reward item.

Complete Configuration Example

return {
    requiredPolice = 2,

    cooldown = {
        min = 30,
        max = 60
    },
    
    powerCut = {
        requiredItem = 'hackingdevice',

        doorIds = { 1, 2 },

        removeItem = { 
            onFail = {
                enabled = true,
                chance = 75,
            },

            onUse = {
                enabled = true,
                chance = 25, 
            }
        }
    },
    
    laptop = {
        requiredItem = 'laundromat_usb',

        doorIds = { 3 },

        removeItem = { 
            onFail = {
                enabled = true,
                chance = 60,
            },

            onUse = {
                enabled = true,
                chance = 15, 
            }
        }
    },

    laundromat = {
        requiredItem = 'WEAPON_CROWBAR'
    },

    rewards = {
        laundromat = {
            name = 'black_money',

            amount = {
                min = 2000,
                max = 3000
            }
        },

        safe = {
            name = 'black_money',

            amount = {
                min = 30000,
                max = 40000
            }
        }
    },
}