The radius value is the radius or size of the zone
Config.Greenzones = {
['my_new_zone_name'] = { -- the key must be unique
info = {-- zone info
debug = true, -- debug zone
coords = vector3(310.3, -590.55, 43.29), -- zone spawn coords
thickness = 10, -- zone thickness
radius = 65, -- zone radius
},
states = { -- define states in this zone
resetHealth = true, -- resets the players health back to 100 in this zone
resetStress = true, -- resets the players stress back to 0 in this zone
resetHunger = true, -- resets the players hunger back to 100 in this zone
resetThirst = true, -- resets the players thirst back to 100 in this zone
invincible = true, -- makes the player invincible in this zone
invisible = true, -- makes the player semi-invisible in this zone
noRagdoll = true, -- stops players ragdolling in this zone
},
restrictions = { -- define restrictions in this zone
disarm = true, -- disarms the player in this zone if carrying a weapon
melee = true, -- disable melee in this zone
shooting = true, -- disable shooting in this zone
driveby = true, -- disables drive by shooting in this zone
vehicleWeapons = true, -- disables vehicle weapons in this zone
lockInventory = false, -- locks the players inventory in this zone
},
ignore = { -- define ignore restrictions in this zone
staff = { -- ignore restrictions for permissions
--add permissions here or leave this empty
'admin',
'god',
'mod',
},
jobs = { -- ignore restrictions for jobs
--add jobs here or leave this empty
'ambulance',
},
gangs = {-- ignore restrictions for gangs
--add gangs here or leave this empty
},
},
},
--add more zones as required
}
States
You can apply various states to players when they enter the zone by defining which option to enable in the states field
states = { -- define states in this zone
resetHealth = true, -- resets the players health back to 100 in this zone
resetStress = true, -- resets the players stress back to 0 in this zone
resetHunger = true, -- resets the players hunger back to 100 in this zone
resetThirst = true, -- resets the players thirst back to 100 in this zone
invincible = true, -- makes the player invincible in this zone
invisible = true, -- makes the player semi-invisible in this zone
noRagdoll = true, -- stops players ragdolling in this zone
},
Restrictions
You can apply various restrictions to players when they enter a zone by defining which option to enable in the restrictions field
restrictions = { -- define restrictions in this zone
disarm = true, -- disarms the player in this zone if carrying a weapon
melee = true, -- disable melee in this zone
shooting = true, -- disable shooting in this zone
driveby = true, -- disables drive by shooting in this zone
vehicleWeapons = true, -- disables vehicle weapons in this zone
lockInventory = false, -- locks the players inventory in this zone
},
Ignore Restrictions
You can set various staff/admin permission levels, job and gang names to be exempt from the restrictions when inside a zone
Simply define the relevant name in the correct section you wish to be exempt from restrictions inside the zone
ignore = { -- define ignore restrictions in this zone
staff = { -- ignore restrictions for permissions
--add permissions here or leave this empty
'admin',
'god',
'mod',
},
jobs = { -- ignore restrictions for jobs
--add jobs here or leave this empty
'ambulance',
},
gangs = {-- ignore restrictions for gangs
--add gangs here or leave this empty
},
},