Config File

Config = {}

Config.Language = 'en'

Config.OpenCommand = "policestuffs"
Config.DeleteObjectCommand = "deleteobject"

Config.Object = {
    CreateObjectKeys = { -- https://docs.fivem.net/docs/game-references/controls/#controls
        place = 191, -- ENTER
        rotateLeft = 44, -- Q
        rotateRight = 38, -- E
        cancel = 194, -- BACKSPACE
    },
    DeleteObjectKeys = {
        delete = 191, -- ENTER
        cancel = 194, -- BACKSPACE
    },
    RotationSpeed = 2.0, -- rotateLeft and rotateRight speed
    PlacementDistance = 5.0, -- max distance for placing objects
    PlacementTime = 3000, -- time in ms to place the object
    DeleteTime = 2000, -- time in ms to delete the object
}

Config.Spikestrip = {
    BurstTires = true, -- should the spikestrip burst tires
    TireBurstChance = 100, -- chance (in percent) for each tire to burst when driving over the spikestrip
    AutoRemoveOnExplode = true, -- should the spikestrip be removed when it explodes
    AutoRemoveTime = 5000, -- time in ms after which the spikestrip is automatically removed
}

Config.Notify = 'qb-core' -- qb-core, ox_lib or custom
Config.CustomNotify = function(type, text)
    -- you can use your own notify function here
end

Config.Jobs = {
    {
        job = 'police', -- job name
        grade = 0, -- minimum grade required
        objectLimit = 10, -- maximum number of objects a player can place (0 = unlimited)
    }
}

Config.PoliceVehicles = {
    'police',
    'police2',
    'sheriff',
    'sheriff2',
    'statecar',
}

Config.Objects = {
    {
        image = 'https://raw.githubusercontent.com/savoystudios/Assets/refs/heads/main/savoy_policestuffs/images/p_ld_stinger_s.png', -- object image
        name = 'Spikestrip', -- object name
        hash = `p_ld_stinger_s`, -- object model hash
        animType = 3, -- 1: hammering (big objects), 2: kneel down (small objects), 3: throw (spikestrip)
    },
    {
        image = 'https://raw.githubusercontent.com/savoystudios/Assets/refs/heads/main/savoy_policestuffs/images/prop_roadcone02a.png',
        name = 'Road Cone',
        hash = `prop_roadcone02a`,
        animType = 2,
    },
    {
        image = 'https://raw.githubusercontent.com/savoystudios/Assets/refs/heads/main/savoy_policestuffs/images/prop_mp_cone_04.png',
        name = 'Cone with light',
        hash = `prop_mp_cone_04`,
        animType = 2,
    },
    {
        image = 'https://raw.githubusercontent.com/savoystudios/Assets/refs/heads/main/savoy_policestuffs/images/prop_barrier_work05.png',
        name = 'Barrier',
        hash = `prop_barrier_work05`,
        animType = 2,
    },
    {
        image = 'https://raw.githubusercontent.com/savoystudios/Assets/refs/heads/main/savoy_policestuffs/images/Prop_MP_Arrow_Barrier_01.png',
        name = 'Arrow Barier',
        hash = `Prop_MP_Arrow_Barrier_01`,
        animType = 2,
    },
    {
        image = 'https://raw.githubusercontent.com/savoystudios/Assets/refs/heads/main/savoy_policestuffs/images/Prop_Air_SecHut_01.png',
        name = 'Hut',
        hash = `Prop_Air_SecHut_01`,
        animType = 1,
    },
}

Last updated