πŸ› οΈconfig_missions.lua

--β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
--β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•
--β–ˆβ–ˆβ•”β–ˆβ–ˆβ–ˆβ–ˆβ•”β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
--β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘
--β–ˆβ–ˆβ•‘ β•šβ•β• β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘
--β•šβ•β•     β•šβ•β•β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β• β•šβ•β•β•β•β•β• β•šβ•β•  β•šβ•β•β•β•β•šβ•β•β•β•β•β•β•
Config.EnableMissions = true -- Do you want to enable the cb-gangsystem Missions feature?
Config.MaxMissions = 1       -- The maximum number of missions that can be completed per restart
Config.UpdateLoyalty = {
    -- When completing a mission you have three ways that you can reward the gang
    -- Enable only one!
    choose = false, -- If true, the player can choose which Turf the loyalty is added to
    homeTurf = true, -- If true, the loyalty is added to the gang's Home Turf (Recommended for RP)
    none = false, -- If true, the loyalty is not added for missions
}
Config.UsePrevalenceForMissions = true -- Do you want to factor in prevalence when giving missions? This will use prevalenceLevel of each mission to determine if the player can do it. Then give a random mission from the eligible pool.
Config.Missions = {
    --[[
    Potential Mission locations:
    vec4(-1101.95, 2721.83, 18.8, 326.31) - Paleto Small Business
    vec4(280.68, 204.45, 104.37, 313.76) - Movie Theater
    ]]
    ['Zoey'] = {
        ['prevalenceLevel'] = 2, -- This is the prevalence level (star count) required for the player to receive this mission.
        ['ped'] = {
            model = `a_f_y_hippie_01`, -- The model of the mission ped
            coords = vec4(-37.19, -2737.91, 11.39, 278.77), -- Docks
            staffCoord = vec4(-36.47, -2736.62, 11.39, 165.7), -- This is the location that Staff will teleport too (Tried to keep RP in mind)
            scenario = 'WORLD_HUMAN_HANG_OUT_STREET', -- The scenario that the ped will be doing
        },
        ['target'] = {
            icon = 'fa-brands fa-angellist', -- Target icon
            label = 'Talk to Zoey', -- Target label
        },
        ['messages'] = {
            start = {
                subject = 'Help Zoey', -- Mission subject (Shows when the player is given the mission)
                message = 'Zoey runs a "shipping" business down at the docks. Bring her a brick of Heroin', -- Mission message. Shows when the player is given the mission
            },
            finish = {
                subject = 'Zoey', -- Mission Subject (Shows when the player finishes the mission)
                message = 'Thanks for helping me with this. Call me later!' -- Mission message. Shows when the player finishes the mission
            },
            whoAreYou = { -- This is optional. You can remove it and it will not show up.
                subject = "Zoey", -- Shows when the player targets the ped and selects Who Are You?
                message = "I'm Zoey! That's all you need to know right now.", -- Shows when the player targets the ped and selects Who Are You?
            }
        },
        ['requirement'] = {
            -- Required Items
            [1] = {
                item = "heroin_brick",
                amount = 1,
            }
        },
        -- You can add a teleport in case you want to hide peds in specific locations, such as a shell
        -- ['teleport'] = {
        --     label = "Enter Crosswalk",
        --     from = vector3(-121.13023376465, -976.85864257813, 272.14126586914),
        --     to = vec4(-122.31, -976.64, 268.98, 47.97),
        --     heading = 238,
        -- },
        ['reward_type'] = {
            type = 'random',      -- random / tier
            single = true,        -- (true) single item or (false) mutiple by chance
            acceptAnyItem = false -- Set this to true if you want to allow completion if the player has any ONE item in the requirements list
        },
        ['reward'] = {
            { type = 'cash', name = 'cash', amount = 4700, chance = 100 },
            --{ type = 'item', name = 'diamond', amount = 25, chance = 100 },
            --{ type = 'bank', name = 'bank', amount = 35000, chance = 100 },
        }
    },
    ['Gary'] = {
        ['prevalenceLevel'] = 1,
        ['ped'] = {
            model = `g_m_y_lost_02`,
            coords = vec4(846.02, 2123.08, 52.86, 95.31),
            staffCoord = vec4(844.55, 2123.19, 52.31, 273.84),
            scenario = 'WORLD_HUMAN_HANG_OUT_STREET',
        },
        ['target'] = {
            icon = 'fa-brands fa-angellist',
            label = 'Talk to Gary',
        },
        ['messages'] = {
            start = {
                subject = 'Help Gary',
                message = 'Gary moved to Redwood. He\'s one of my biggest clients for weed. Bring him a brick to keep the waves going.',
            },
            finish = {
                subject = 'Gary',
                message = 'Franklin said you were worth it! He was right!'
            },
            whoAreYou = { -- This is optional. You can remove it and it will not show up.
                subject = "Gary",
                message = "I'm Gary! That's all you need to know right now.",
            }
        },
        ['requirement'] = {
            [1] = {
                item = "weed_brick",
                amount = 1,
            },
            [2] = {
                item = "weed_skunk_brick",
                amount = 1,
            },
            [3] = {
                item = "weed_purple-haze_brick",
                amount = 1,
            },
            [4] = {
                item = "weed_amnesia_brick",
                amount = 1,
            },
            [5] = {
                item = "weed_ak47_brick",
                amount = 1,
            },
            [6] = {
                item = "weed_white-widow_brick",
                amount = 1,
            },
            [7] = {
                item = "weed_og-kush_brick",
                amount = 1,
            }
        },
        ['shop'] = { -- This is optional. In addition to the missions, the peds can also sell items to the players. REQUIRES OX_INVENTORY FOR RIGHT NOW
            label = "Buy Something",
            icon = 'fa-solid fa-cannabis',
            iconColor = 'green',
            allowPolice = false,
            inventory = {
                { name = 'empty_weed_bag', price = 10, currency = 'black_money' },
                { name = 'empty_weed_bag', price = 10 },
            },
        },
        ['reward_type'] = {
            type = 'random', -- random / tier
            single = true,   -- (true) single item or (false) mutiple by chance
            acceptAnyItem = true -- Set this to TRUE if you want to allow completion if the player has any ONE item in the requirements list
        },
        ['reward'] = {
            { type = 'cash', name = 'cash', amount = 3700, chance = 100 },
        }
    },
    ['Billy'] = {
        ['prevalenceLevel'] = 2,
        ['ped'] = {
            model = `a_m_m_hillbilly_02`,
            coords = vector4(-1741.36, 237.27, 64.44, 314.46), -- Richman High School
            staffCoord = vec4(-1740.41, 237.93, 64.45, 128.96),
            scenario = 'WORLD_HUMAN_HANG_OUT_STREET',
        },
        ['target'] = {
            icon = 'fa-brands fa-angellist',
            label = 'Talk to Billy',
        },
        ['messages'] = {
            start = {
                subject = 'Help Billy',
                message =
                'Billy thinks he\'s snorting energy powder, but it\'s really cocaine. Bring him another brick of the best cut you can find. He\'s in Richman.',
            },
            finish = {
                subject = 'Billy',
                message = 'The side effects of this stuff are crazy! This is payment for your troubles.'
            },
            whoAreYou = { -- This is optional. You can remove it and it will not show up.
                subject = "Billy",
                message = "I'm Billy! That's all you need to know right now.",
            }
        },
        ['requirement'] = {
            [1] = {
                item = "coke_brick",
                amount = 1,
            }
        },
        ['reward_type'] = {
            type = 'random', -- random / tier
            single = false,  -- (true) single item or (false) mutiple by chance
            acceptAnyItem = false -- Set this to TRUE if you want to allow completion if the player has any ONE item in the requirements list
        },
        ['reward'] = {
            { type = 'cash', name = 'cash', amount = 5500, chance = 100 },
        }
    },
    ['Ortega'] = {
        ['prevalenceLevel'] = 2,
        ['ped'] = {
            model = `ig_ortega`,
            coords = vec4(-1224.23, 89.05, 56.5, 289.58),
            staffCoord = vec4(-1222.85, 87.06, 56.27, 36.68),
            scenario = 'WORLD_HUMAN_GOLF_PLAYER',
        },
        ['target'] = {
            icon = 'fa-brands fa-angellist',
            label = 'Talk to Ortega',
        },
        ['messages'] = {
            start = {
                subject = 'Help Ortega',
                message =
                'Ortega’s got business to handle, and he needs his supply now. Head to the green and deliver a Brick of Meth. Keep it clean, and don’t mess this upβ€”he’s counting on you.',
            },
            finish = {
                subject = 'Ortega',
                message = 'This will definitely get the job done. Thank you for this. Here you go.'
            },
            whoAreYou = { -- This is optional. You can remove it and it will not show up.
                subject = "Ortega",
                message = "I'm Ortega! That's all you need to know right now.",
            }
        },
        ['requirement'] = {
            [1] = {
                item = "meth_brick",
                amount = 1,
            }
        },
        ['reward_type'] = {
            type = 'random', -- random / tier
            single = false,  -- (true) single item or (false) mutiple by chance
            acceptAnyItem = false -- Set this to TRUE if you want to allow completion if the player has any ONE item in the requirements list
        },
        ['reward'] = {
            { type = 'cash', name = 'cash', amount = 4500, chance = 100 },
        }
    },
    ['Johnny'] = {
        ['prevalenceLevel'] = 1,
        ['ped'] = {
            model = `ig_tomcasino`,
            coords = vector4(-142.02, -950.78, 269.13, 89.57),
            staffCoord = vec4(-143.45, -951.04, 269.13, 276.3),
            scenario = 'WORLD_HUMAN_HANG_OUT_STREET',
        },
        ['target'] = {
            icon = 'fa-brands fa-angellist',
            label = 'Talk to Johnny',
        },
        ['messages'] = {
            start = {
                subject = 'Help Johnny',
                message =
                'Johnny is in charge of repairs atop the Mile High Building. Bring him 80 Steel so he can get the job done. Climb the crane, deliver the goods, and don\'t forget a parachute.',
            },
            finish = {
                subject = 'Johnny',
                message = 'I knew I could count on you!'
            },
            whoAreYou = { -- This is optional. You can remove it and it will not show up.
                subject = "Johnny",
                message = "I'm Johnny, and we've been working on this building for 12 years!",
            }
        },
        ['requirement'] = {
            [1] = {
                item = "steel",
                amount = 80,
            }
        },
        ['teleport'] = {
            label = "Enter Crosswalk",
            from = vector3(-121.13023376465, -976.85864257813, 272.14126586914),
            to = vec4(-122.31, -976.64, 268.98, 47.97),
            heading = 238,
        },
        ['reward_type'] = {
            type = 'random', -- random / tier
            single = false,  -- (true) single item or (false) mutiple by chance
            acceptAnyItem = false -- Set this to TRUE if you want to allow completion if the player has any ONE item in the requirements list
        },
        ['reward'] = {
            { type = 'cash', name = 'cash', amount = 10000, chance = 100 },
            { type = 'item', name = 'mask', amount = 1, chance = 100,  metadata = {
                label = 'Pig Mask',
                texture= 0,
                drawable= 1,
				image = 'c-icons/mask/1_0'
            }},
        }
    },
    ['Amanada'] = {
        ['prevalenceLevel'] = 1,
        ['ped'] = {
            model = `cs_amandatownley`,
            coords = vec4(-1230.9, 349.04, 79.99, 205.53),
            staffCoord = vec4(-1230.64, 347.5, 79.99, 21.79),
            scenario = 'WORLD_HUMAN_TENNIS_PLAYER',
        },
        ['target'] = {
            icon = 'fa-brands fa-angellist',
            label = 'Talk to Amanada',
        },
        ['messages'] = {
            start = {
                subject = 'Help Amanada',
                message = 'Amanada, Michael\'s wife, lost her wedding ring. Bring her a new one and quick, before the whole world comes to an end.',
            },
            finish = {
                subject = 'Amanda',
                message = 'I knew I could count on you! Here! I found this laying around the bedroom and I\'m tired of looking at it. Take it!'
            },
            whoAreYou = { -- This is optional. You can remove it and it will not show up.
                subject = "Amanda",
                message = "I'm married and I don't talk to strangers.",
            }
        },
        ['requirement'] = {
            [1] = {
                item = "diamond_ring",
                amount = 1,
            }
        },
        ['reward_type'] = {
            type = 'random', -- random / tier
            single = true,  -- (true) single item or (false) mutiple by chance
            acceptAnyItem = false -- Set this to TRUE if you want to allow completion if the player has any ONE item in the requirements list
        },
        ['reward'] = {
            { type = 'item', name = 'lean_bottle', amount = 5, chance = 100 },
        }
    },
    ['Marcus'] = {
        ['prevalenceLevel'] = 5,
        ['ped'] = {
            model = `g_m_y_mexgoon_03`,
            coords = vector4(748.72, -529.05, 27.78, 69.65),
            staffCoord = vec4(747.18, -528.57, 27.78, 252.74),
            scenario = 'WORLD_HUMAN_DRUG_DEALER_HARD',
        },
        ['target'] = {
            icon = 'fa-brands fa-angellist',
            label = 'Talk to Marcus',
        },
        ['messages'] = {
            start = {
                subject = 'Mission',
                message = 'Marcus is a gun nut, he hangs out in the overpass in Mirror Park. Bring him 60K in Marked Bills and he might have something good for you.',
            },
            finish = {
                subject = 'Marcus',
                message = 'Thanks for proving your worth. I\'ve got an extra one of these in stock. Take it.'
            },
            whoAreYou = { -- This is optional. You can remove it and it will not show up.
                subject = "Marcus",
                message = "I'm Marcus, and I'm a gun nut.",
            }
        },
        ['requirement'] = {
            [1] = {
                item = "black_money",
                amount = 60000,
            }
        },
        ['reward_type'] = {
            type = 'tier', -- random / tier
            single = true, -- (true) single item or (false) mutiple by chance
            acceptAnyItem = false -- Set this to TRUE if you want to allow completion if the player has any ONE item in the requirements list
        },
        ['reward'] = {
            ['tier1'] = {
                chance = 20,
                items = {
                    { type = 'item', name = 'bppistol50', amount = 1, chance = 100 },
                }
            },
            ['tier2'] = {
                chance = 20,
                items = {
                    { type = 'item', name = 'bpheavypistol', amount = 1, chance = 100 },
                }
            },
            ['tier3'] = {
                chance = 10,
                items = {
                    { type = 'item', name = 'bppumpshotgun', amount = 1, chance = 100 },
                }
            },
            ['tier4'] = {
                chance = 15,
                items = {
                    { type = 'item', name = 'bpmachinepistol', amount = 1, chance = 100 },
                }
            },
            ['tier5'] = {
                chance = 25,
                items = {
                    { type = 'item', name = 'bpdbshotgun', amount = 1, chance = 100 },
                }
            },
        }
    },
    ['Spencer'] = {
        ['prevalenceLevel'] = 3,
        ['ped'] = {
            model = `a_m_y_business_01`,
            coords = vec4(-2025.9, -1043.89, 5.88, 258.95),
            staffCoord = vec4(-2027.59, -1043.6, 5.88, 266.34),
            scenario = 'WORLD_HUMAN_PARTYING',
        },
        ['target'] = {
            icon = 'fa-brands fa-angellist',
            label = 'Talk to Politician',
        },
        ['messages'] = {
            start = {
                subject = 'Help Spencer',
                message = 'A local politician needs some... persuasion. Bring him 2 Gold Bars and he\'ll be sure to see things our way.',
            },
            finish = {
                subject = 'Spencer',
                message = 'Wow! This will make my job so much easier! Here, take this.'
            },
            whoAreYou = { -- This is optional. You can remove it and it will not show up.
                subject = "Spencer",
                message = "I'm a politician, and I'm here to help you.",
            }
        },
        ['requirement'] = {
            [1] = {
                item = "goldbar",
                amount = 2,
            }
        },
        ['reward_type'] = {
            type = 'random', -- random / tier
            single = true,  -- (true) single item or (false) mutiple by chance
            acceptAnyItem = false -- Set this to TRUE if you want to allow completion if the player has any ONE item in the requirements list
        },
        ['reward'] = {
            { type = 'item', name = 'black_money', amount = 75000, chance = 100 },
        }
    },
    ['Leroy'] = {
        ['prevalenceLevel'] = 4,
        ['ped'] = {
            model = `a_m_m_eastsa_01`,
            coords = vec4(287.02, -1118.96, 83.01, 185.29),
            staffCoord = vec4(285.21, -1117.65, 83.01, 231.56),
            scenario = 'WORLD_HUMAN_DRUG_DEALER',
        },
        ['target'] = {
            icon = 'fa-brands fa-angellist',
            label = 'Talk to Leroy',
        },
        ['messages'] = {
            start = {
                subject = 'Weapon Scratching',
                message = 'My man Leroy is in town today! He\'s staying at one of the hotels in Legion, and brought all the tools required to scratch up a weapon for you. Bring him 2 Gold Bars and he\'ll scratch anything you give him.',
            },
            finish = {
                subject = 'Leroy',
                message = 'Nice! Here you go!'
            },
            whoAreYou = { -- This is optional. You can remove it and it will not show up.
                subject = "Leroy",
                message = "I don't talk to strangers.",
            }
        },
        ['requirement'] = {
            [1] = {
                item = "goldbar",
                amount = 2,
            }
        },
        ['reward_type'] = {
            type = 'special', -- random / tier / special
            single = true,  -- (true) single item or (false) mutiple by chance. Ignored if type is special
            acceptAnyItem = false -- Set this to TRUE if you want to allow completion if the player has any ONE item in the requirements list. Ignored if type is special
        },
        ['weapon_scratch'] = {
            -- REWARD TYPE MUST BE SPECIAL FOR THIS TO WORK
            -- THIS ONLY WORKS WITH OX_INVENTORY! OTHER INVENTORY SYSTEMS ARE NOT SUPPORTED!
            -- Just in case you want to disable certain weapons from being scratched
            disabledWeapons = {
                weapon_pistol = true,
                weapon_pistol_mk2 = true,
                weapon_combatpistol = true,
                weapon_machinepistol = true,
                weapon_submachinegun = true,
                weapon_assaultrifle = true,
            }
        }
    },
    --[[
    THIS HAS NOT BEEN BUILT YET
    ['Tony'] = {
        ['prevalenceLevel'] = 4,
        ['ped'] = {
            model = `a_m_m_eastsa_01`,
            coords = vec4(1681.16, 6428.66, 32.17, 333.17),
            staffCoord = vec4(1682.67, 6429.52, 32.18, 126.37),
            scenario = 'WORLD_HUMAN_DRUG_DEALER',
        },
        ['target'] = {
            icon = 'fa-brands fa-angellist',
            label = 'Talk to Tony',
        },
        ['messages'] = {
            start = {
                subject = 'Weapon Repair',
                message = 'Tony reapairs guns. Bring him a weapon and a gold bar and he\'ll repair anything you\'ve got. Oh, and he hangs out in Paleto.',
            },
            finish = {
                subject = 'Tony',
                message = 'Nice! Here you go!'
            },
        },
        ['requirement'] = {
            [1] = {
                item = "goldbar",
                amount = 1,
            }
        },
        ['reward_type'] = {
            type = 'special', -- random / tier / special
            single = true,  -- (true) single item or (false) mutiple by chance. Ignored if type is special
            acceptAnyItem = false -- Set this to TRUE if you want to allow completion if the player has any ONE item in the requirements list. Ignored if type is special
        },
        ['weapon_repair'] = {
            enabled = true,
            disabledWeapons = {
                -- Just in case you want to disable certain weapons from being scratched
                -- weapon_pistol = true,
                -- weapon_pistol_mk2 = true,
                -- weapon_combatpistol = true,
                -- weapon_machinepistol = true,
                -- weapon_submachinegun = true,
                -- weapon_assaultrifle = true,
            }
        }
    },
    ]]
    -- You can add your own missions here
}

Last updated