v1.2.42 patch
Members-only territory blips, new gang exports and a duplicate blip fix
4changes

Members-only territory blips, new gang exports and a duplicate blip fix
4changes

[02] Release
Territories can now be shown on the map only to the members of the gang that owns them. Three new server exports let other scripts check territory owners and gang members, and remove players from their gang. Duplicate territory blips are fixed, and the server console gets a new update checker.
config/main.lua. If you keep your own config, add this line under Config.DisableTerritoryBlips:Config.TerritoryBlipsOnlyMembers = false -- [EDIT] true = a territory blip is only shown to members of the organization that owns it (unowned territories are hidden). false = everyone sees all blips.
If you don't add it, the script works as before: everyone sees every territory blip.
Replace every file in the resource, except what you edited yourself:
client/modules/territory/main.luaserver/main.luaserver/modules/version.luaconfig/main.lua: one new line, see above.fxmanifest.lua: version only.server/version.lua: no longer used. You can delete it.New option Config.TerritoryBlipsOnlyMembers in config/main.lua. When it is true, each territory blip is only shown to the members of the gang that owns it, and unowned territories are hidden. When a player joins or leaves a gang, their map updates straight away. It is false by default, so everyone still sees every blip.
Three new server exports for other scripts. GetZoneOwner(territoryId or coords) returns the gang that owns a territory. IsInGang(source, orgId?) tells you whether a player is in any gang, or in a specific one. RemovePlayerFromGang(source) removes a player from their gang and works the same as FirePlayerGang.
When the resource starts, the console shows your version, the latest version and whether you are up to date. When an update is available, it lists what changed and links to the full changelog. It replaces the old version check.
Editing or deleting a territory could leave its old blip on the map. The old blip is now removed every time.