Snatch Grab Config

SnatchGrabConfig = {}

SnatchGrabConfig.Enabled = true -- If you want this module disabled set to false

SnatchGrabConfig.VehicleAlarmChance = 50 -- Chance of the vehicle alarm going off when stealing loot
SnatchGrabConfig.AlertPoliceChance = 50 -- Chance of the police being alerted when stealing loot
SnatchGrabConfig.WitnessChance = 100 -- Chance of a witness attacking the player when stealing loot

SnatchGrabConfig.Weapons = { -- The Weapons you want peds to be able to attack players with
    'WEAPON_PISTOL',
    'WEAPON_PUMPSHOTGUN',
    'WEAPON_BAT',
    'WEAPON_KNIFE',
}

SnatchGrabConfig.ChanceofSpawn = { -- The chance of a prop spawning in a specific vehicle class
    [0] = 25, -- Compacts
    [1] = 25, -- Sedans
    [2] = 25, -- SUVs
    [3] = 25, -- Coupes
    [4] = 15, -- Muscle
    [5] = 25, -- Sports Classics
    [6] = 25, -- Sports
    [7] = 20, -- Super
    [8] = 0,  -- Motorcycles
    [9] = 20, -- Off-road
    [10] = 0, -- Industrial
    [11] = 0, -- Utility
    [12] = 10, -- Vans
    [13] = 0, -- Cycles
    [14] = 0, -- Boats
    [15] = 0, -- Helicopters
    [16] = 0, -- Planes
    [17] = 0, -- Service
    [18] = 0, -- Emergency
    [19] = 0, -- Military
    [20] = 0, -- Commercial
    [21] = 0, -- Trains
}

SnatchGrabConfig.LootSettings = { -- The loot settings for vehicles
    lootTypes = {
        ['normal'] = {
            chanceOfNoLoot = 20, -- chance of getting nothing
            lootTable = { -- What a player can get from normal loot 
                { item = 'phone', min = 1, max = 1 },
            },
            money = { -- Depending on the chance depends on if they get money
                chance = 25, -- Percentage chance that you will get money
                amount = {
                    min = 10, -- The min amount of money you can get
                    max = 20, -- The max amount of money you can get
                }
            },
            models = { -- What models can spawn in vehicles and their offsets for spawning
                {
                    model = 'prop_michael_backpack',
                    offset = vec3(0.0, -0.05, 0.10),
                },
                {
                    model = 'prop_ld_handbag_s',
                    offset = vec3(0.0, -0.05, 0.10),
                },
                {
                    model = 'prop_big_bag_01',
                    offset = vec3(0.0, -0.05, 0.10),
                },
            }
        },
        ['food'] = {
            chanceOfNoLoot = 20,
            lootTable = {
                { item = 'burger', min = 1, max = 1 },
            },
            money = {
                chance = 0,
                amount = {
                    min = 0,
                    max = 0,
                }
            },
            models = {
                {
                    model = 'prop_food_bs_bag_01',
                    offset = vec3(0.0, -0.05, 0.05),
                },
                {
                    model = 'prop_food_bag1',
                    offset = vec3(0.0, -0.05, 0.05),
                },
                {
                    model = 'prop_food_cb_bag_01',
                    offset = vec3(0.0, -0.05, 0.05),
                },
            }
        },
        ['laptops'] = {
            chanceOfNoLoot = 20,
            lootTable = {
                { item = 'laptop', min = 1, max = 1 },
            },
            money = {
                chance = 0,
                amount = {
                    min = 0,
                    max = 0,
                }
            },
            models = {
                {
                    model = 'prop_laptop_02_closed',
                    offset = vec3(0.0, 0.0, 0.05),
                },
                {
                    model = 'p_cs_laptop_02_w',
                    offset = vec3(0.0, 0.0, 0.05),
                },
                {
                    model = 'sf_prop_sf_art_laptop_01a',
                    offset = vec3(0.0, 0.0, 0.05),
                },
                {
                    model = 'm23_2_prop_m32_laptop_01a',
                    offset = vec3(0.0, 0.0, 0.05),
                },
            }
        },
        ["cargo_bed"] = {
            chanceOfNoLoot = 20,
            lootTable = {
                { item = 'scrapmetal', min = 1, max = 1 },
            },
            money = {
                chance = 0,
                amount = {
                    min = 0,
                    max = 0,
                }
            },
            models = {
                {
                    model = 'prop_tool_box_01',
                    offset = vec3(0.0, 0.7, 0.05),
                },
            }
        }
    }
}

SnatchGrabConfig.GlobalLoot = { -- The Loot Types that are global and will randomly be chosen if a vehicle is eligible for loot
    'laptops',
    'food',
    'normal',
}

SnatchGrabConfig.VehicleModels = { -- This is for specific vehicles you want to have a different loot type for
    ['BISON'] = { 
        lootType = 'cargo_bed',
    },
    ['REBEL'] = {
        lootType = 'cargo_bed',
    },
    ['SANDKING'] = {
        lootType = 'cargo_bed',
    },
    ['REBEL2'] = {
        lootType = 'cargo_bed',
    },
    ['SANDKING2'] = {
        lootType = 'cargo_bed',
    },
    ['SADLER'] = {
        lootType = 'cargo_bed',
    },
}

Last updated