π οΈMission Configuration
Configuring new Gang Missions for CB-GangSystem has never been easier!
prevalenceLevel
This represents the minimum prevalence level (stars) for the missions to be granted to the player. If the player's gang doesn't meet the requirements, the missions will not be added to the pool of available missions.
ped
coords
- The coordinates of the mission PEDmodel
- The model of the mission PEDstaffCoord
- The coordinates that Staff Members will teleport to.scenario
- The scenario of the PED
target
icon
- The icon of the targetlabel
- The label of the target
messages
start
subject
- The message label that will be displayed when the mission is startedmessage
- The message description that will be displayed when the mission is started
finish
subject
- The message label that will be displayed when the mission is finishedmessage
- The message description that will be displayed when the mission is finished
whoAreYou
(OPTIONAL)
subject
- The message label that will be displayed when the player targets the mission PEDmessage
- The message description that will be displayed when the player targets the mission PED
requirement
[Array Index]
item
- The item that is required to complete the missionamount
- The amount that the player must have in order to complete the mission
shop
This entire array is OPTIONAL. You can remove it and missions will still function properly.
label
- The target labelicon
- The target iconiconColor
- The target icon color (This only works for ox_inventory)allowPolice
- Whether to allow police to use the shopinventory
name
- The name of the item that the player can purchaseprice
- The price the player must pay to purchase the itemcurrency
(OPTIONAL) - The currency used for the item. Visit Overextended Documentation for more information on this.
reward_type
type
tier
- Rewards will be based on configurable tiers with different items and different chances for each tier.random
- Rewards will be random and based on chancespecial
- This is for special missions only such as Weapon Scratching and Weapon Repair.
single
- Whether the mission should reward only one item or multiple based on chanceacceptAnyItem
- Whether to accept any item in the requirements list or require the player to have ALL items in the requirements list.A good example of this being used is a Weed Mission. Let's say there are multiple strains of weed, we'd want the player to complete the mission if they turn in just one of the strains, instead of requiring them to collect all of them.
reward
Tiered Rewards:
[Array Index]
chance
- The chance of the tier being selecteditems
- The individual items of the reward tiertype
item
- The reward is an itembank
- The reward is money in the player's bankcash
- The reward is cash
name
- The name of the itemamount
- The amount of the item to givechance
- The chance of obtaining this specific item
weapon_scratch
Reward Type must be special
for this to work!
You must use Ox Inventory for this to work!
This entire array is OPTIONAL. You can remove it and missions will still function properly.
disabledWeapons
- You can add weapons to this array and prevent players from scratching those weapons. You can leave an empty array to allow players to scratch all weapons.
Last updated