Skip to content

Commit

Permalink
feat(Client): render blips for gangs only
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiichx committed Jul 31, 2024
1 parent ab9f02b commit 796c597
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

1 comment on commit 796c597

@Gameadictive
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

U the best, nice addition.

Please sign in to comment.