From 796c597a8fcd7ed3757b1064589ae7df3170be7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=C4=87?= Date: Wed, 31 Jul 2024 14:34:20 +0200 Subject: [PATCH] feat(Client): render blips for gangs only --- client.lua | 3 +++ shared.lua | 1 + 2 files changed, 4 insertions(+) diff --git a/client.lua b/client.lua index 90651c2..fd77013 100644 --- a/client.lua +++ b/client.lua @@ -44,6 +44,9 @@ local function checkInput(input, typeRequired, checkEmpty) end function createBlips() + local renderBlips = (shared.gangOnlyBlips and PlayerData.job and shared.gangs[PlayerData.job.name]) or not shared.gangOnlyBlips + if not renderBlips then return end + for i = 1, #territoryCollection do local currentTerritory = territoryCollection[i] local circleBlip = AddBlipForCoord(currentTerritory.coords.x, currentTerritory.coords.y, currentTerritory.coords.z) diff --git a/shared.lua b/shared.lua index 2d6f00b..eb6a4a2 100644 --- a/shared.lua +++ b/shared.lua @@ -11,6 +11,7 @@ shared = { item = 'black_money', -- item name count = 1000 -- amount }, + gangOnlyBlips = true, -- show blips only for gangs that are allowed to capture territories itemsToBuy = { -- buyable items if territory type is 'market' ['bread'] = { label = '🍞 | Bread',