Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2 from TomGrobbe/pld-workaround
Browse files Browse the repository at this point in the history
Pld workaround
  • Loading branch information
TomGrobbe committed Dec 20, 2017
2 parents f0c5e00 + f02b8e6 commit 13d5955
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion noplayerblips/client.lua
Expand Up @@ -16,7 +16,11 @@ local blip_display_type = 1 -- (default: 1)
-- 3: show blips in the pause menu only (hidden on minimap/radar).
local alternative_blip_display_type = 2 -- (default: 2)


-- Set this to false if this is causing problems on your server.
-- It's a somewhat hacky solution to remove PLD blips but it's not 100% tested.
-- Also PLD blips don't take permissions or displaytypes in mind, if you leave this
-- as "true", the blips will be gone for everyone until the server restarts and players restart their game.
local disable_pld_blips = true


--- Don't touch this code
Expand All @@ -33,6 +37,13 @@ Citizen.CreateThread(function()
SetBlipShowCone(blip, false)
SetBlipDisplay(entityblip, blip_display_type)
end
if disable_pld_blips then
local PLD_Blip = GetFirstBlipInfoId(1)
if DoesBlipExist(PLD_Blip) then
SetBlipSprite(PLD_Blip, 239)
SetBlipDisplay(PLD_Blip, blip_display_type)
end
end
end
else
for x=0,32 do
Expand Down

0 comments on commit 13d5955

Please sign in to comment.