πŸ› οΈconfig_tasks.lua

Config.EnableTasks = true
Config.AddTaskInterval = 300 -- Adds a new tasks every x seconds
Config.TaskLocations = {
    -- It's wise to put these locations somewhere where there is turf
    -- If the location is not in a turf, loyalty will not be given, zoneLabel will take precedence
    [1] = {
        coords = vec4(-723.5, -138.93, 46.14, 208.16),
        zoneLabel = "Rockford Hills",
        scenario = "WORLD_HUMAN_STAND_MOBILE",
    },
    [2] = {
        coords = vec4(-1406.48, -253.72, 46.38, 138.37),
        zoneLabel = "Morningwood",
        scenario = "WORLD_HUMAN_STAND_MOBILE",
    },
    [3] = {
        coords = vec4(-1246.18, -517.78, 35.4, 50.85),
        zoneLabel = "Richards Majestic",
        scenario = "WORLD_HUMAN_STAND_MOBILE",
    },
    [4] = {
        coords = vec4(423.61, -1906.6, 25.6, 322.89),
        zoneLabel = "Rancho",
        scenario = "WORLD_HUMAN_STAND_MOBILE",
    },
    [5] = {
        coords = vec4(47.58, -29.08, 73.68, 79.67),
        zoneLabel = "Hawick",
        scenario = "WORLD_HUMAN_STAND_MOBILE",
    },
    [6] = {
        coords = vec4(189.83, -14.11, 73.22, 166.91),
        zoneLabel = "Downtown Vinewood",
        scenario = "WORLD_HUMAN_STAND_MOBILE",
    },
    [7] = {
        coords = vec4(1168.68, -399.84, 71.58, 268.22),
        zoneLabel = "Mirror Park",
        scenario = "WORLD_HUMAN_STAND_MOBILE",
    },
    [8] = {
        coords = vec4(-143.02, -1286.68, 47.9, 7.71),
        zoneLabel = "Strawberry",
        scenario = "WORLD_HUMAN_STAND_MOBILE",
    },
}

Config.Tasks = {
    [1] = {
        ped = "mp_m_bogdangoon",
        name = "Help Recruit",
        description = "We've got a new recruit that needs a piece to protect himself. A simple pistol should do the trick.",
        rewardMessage = "$1000 + 50 Loyalty + Prevalence",
        requirementsLabel = "1 Pistol",
        prevalenceRestriction = 5,
        rewards = {
            items = {
                {
                    amount = 1000,
                    item = "money",
                }
            },
            prevalence = {
                enabled = true,
                amount = 5,
            },
            loyalty = {
                enabled = true,
                amount = 50,
            },
            homeTurf = {
                enabled = true,
                amount = 100,
            }
        },
        requirements = {
            {
                item = "weapon_pistol",
                amount = 1,
            }
        }
    },
    [2] = {
        ped = "ig_lestercrest",
        name = "Help Lester",
        description = "Lester got his laptops seized by the FIB. We need to get hime some new ones so he can get back online.",
        rewardMessage = "$500 + 100 Loyalty + Prevalence",
        requirementsLabel = "2 Laptops",
        prevalenceRestriction = 5,
        rewards = {
            items = {
                {
                    amount = 500,
                    item = "money",
                }
            },
            prevalence = {
                enabled = true,
                amount = 5,
            },
            loyalty = {
                enabled = true,
                amount = 100,
            },
            homeTurf = {
                enabled = true,
                amount = 100,
            }
        },
        requirements = {
            {
                item = "laptop",
                amount = 2,
            }
        }
    }
}

Last updated