Zones
This represents the zones configuration (sh_zones.lua)
Config.Zones = {}
Config.Zones.Default = { --Settings for default (non-reward) zones
ZonePower = 100, --How much total power is in the zone.
}
Config.Zones.Types = { --Zone types
["money"] = { --Zone type
color = "00a303", --Zone color
},
["industry"] = { --Zone type
color = "00a303", --Zone color
},
}
Config.Zones.InfluenceEvents = {
["kill_other_gang_member"] = {
add = 2, --How much influence give to the gang that killed the player?
remove = 1 --How much influence to remove from the killed player's gang?
},
["zone_occupation"] = {
interval = 60000, --How long does the player have to stay in the zone to receive the influence? (in ms)
add = 1, --How much influence to give to the player's gang?
},
--- Thought of more? Write up a suggestion in our Discord server!
}
Zone List
Zone Creation
To create zones easier, use this tool to create their polyzones.
Structure
This is the all possible values a zone can have.
["industryzone"] = { --Zone name
label = "Industrial District", --Zone label
type = "industry", --Zone type
poly = {
vector2(840.91, -1771.21),
vector2(793.94, -2050.00),
vector2(759.09, -2436.36),
vector2(1046.97, -2472.73),
vector2(1113.64, -2398.48),
vector2(1162.12, -2298.48),
vector2(1142.42, -2186.36),
vector2(1137.88, -2089.39),
vector2(1127.27, -2060.61),
vector2(1154.55, -2010.61),
vector2(1136.36, -1968.18),
vector2(1096.97, -1925.76),
vector2(1054.55, -1886.36),
vector2(1036.36, -1843.94),
vector2(1033.33, -1769.70)
},
Locations = { --Locations in the zone
StashHouse = {
position = vector3(895.8345, -1996.3213, 30.6310), --Stash house position
entrance = { --Stash house entrance
name = "industry_gang_stash_house_enter", --Entrance name
coords = vector3(896.59, -1996.78, 28.23), --Entrance coords
size = { x = 1.4, y = 2, z = 4 }, --Entrance size
heading = 352, --Entrance heading
},
iplCoords = vector3(924.2731, -2275.7949, -50.4094), --IPL coords
leaveDoors = { --Leave doors
name = "industry_gang_stash_house_leave", --Leave door name
coords = vector3(924.16, -2276.44, -53.01), --Leave door coords
size = { x = 1.0, y = 2, z = 4 }, --Leave door size
heading = 0, --Leave door heading
},
objects = { --Objects in the stash house
{
model = "v_res_tre_sofa_mess_b", --Object model
position = vector4(927.65808105469, -2266.6696777344, -51.395709991455, 0.0), --Object position
requiredLevel = 1, --Required level
clearOnHigherLevel = true, --Remove on higher levels
},
{
model = "prop_table_03b", --Object model
position = vector4(927.63757324219, -2268.1623535156, -51.502201080322, 0.0), --Object position
requiredLevel = 1, --Required level
},
{
model = "sr_prop_sr_boxpile_03", --Object model
position = vector4(923.41082763672, -2266.5720214844, -51.395816802979, 0.0), --Object position
stashName = "base", --Stash name
requiredLevel = 1, --Required level
},
{
model = "v_res_r_sofa", --Object model
position = vector4(927.65808105469, -2266.6696777344, -51.395709991455, 0.0), --Object position
requiredLevel = 2, --Required level
},
{
model = "sr_prop_sr_boxpile_03", --Object model
position = vector4(932.05444335938, -2272.7126464844, -51.394401550293, 0.0), --Object position
stashName = "base_2", --Stash name
requiredLevel = 2, --Required level
},
{
model = "prop_tv_flat_03", --Object model
position = vector4(927.67028808594, -2268.16015625, -50.70, 177.95123291016), --Object position
requiredLevel = 3, --Required level
},
}
},
Grandma = { --Grandma location
position = vector3(920.0078, -2096.6829, 29.4940), --Grandma position
pedModel = "MP_F_Forgery_01", --Ped model
heading = 306.3017 --Ped heading
},
Refinery = { --Refinery location
position = vector3(899.83, -1881.93, 31.37), --Refinery position
target = { --Refinery target
name = "industry_gang_weed_refinery", --Refinery target name
coords = vector3(899.83, -1881.93, 31.37), --Refinery target coords
size = { x = 2, y = 2, z = 4 }, --Refinery target size
heading = 0, --Refinery target heading
},
items = { --Refinery items
requiredItem = { --Required item
name = "steel", --Item name
amount = 10 --Item amount
},
rewardItem = { --Reward item
type = "item", -- Reward type (item / coins / cash / bank)
name = "lockpick", --Item name
amount = 1 --Item amount
},
interval = 10000 --Refinery interval
}
}
}
},
Last updated