Restrict objects to certain teams
You can restrict objects to only be loot-able by certain teams.
Remember that teams must still be listed in CH_IllegalDiscoveries.Config.CriminalTeams or else they cannot loot at all.
Here's an example of restricting Cocaine Pallet to only 3 teams.
CH_IllegalDiscoveries.Items["ch_illegal_discoveries_cocaine"] = {
Name = "Cocaine Pallet",
Class = "ch_illegal_discoveries_cocaine",
Reward = { 10000, 20000 },
LootTime = 10,
SpawnChance = 50,
CustomRewardChance = 50,
TeamsCanLoot = {
["Citizen"] = true,
["Gangster"] = true,
["Criminal"] = true,
},
}
The TeamsCanLoot table is a list of team names as shown in your scoreboard (aka their visual name).