ShowBlip Config

This commit is contained in:
Mycroft
2021-04-27 00:12:42 +01:00
parent 7156d50da3
commit 7a19d5c0ee
2 changed files with 10 additions and 5 deletions
+4 -2
View File
@@ -77,7 +77,7 @@ end)
Citizen.CreateThread(function()
for k,v in pairs(Config.Zones) do
for i = 1, #v.Pos, 1 do
if v.Show then
if v.ShowBlip then
local blip = AddBlipForCoord(v.Pos[i])
SetBlipSprite (blip, v.Type)
@@ -105,10 +105,12 @@ Citizen.CreateThread(function()
local distance = #(playerCoords - v.Pos[i])
if distance < Config.DrawDistance then
if v.ShowMarker then
DrawMarker(Config.MarkerType, v.Pos[i], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Config.MarkerSize.x, Config.MarkerSize.y, Config.MarkerSize.z, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, false, nil, nil, false)
end
letSleep = false
if distance < Config.MarkerSize.x then
if distance < 2.0 then
isInMarker = true
currentZone = k
lastZone = k
+6 -3
View File
@@ -33,7 +33,8 @@ Config.Zones = {
Size = 1.0,
Type = 59,
Color = 25,
Show = true -- show blip
ShowBlip = true,
ShowMarker = true
},
RobsLiquor = {
@@ -63,7 +64,8 @@ Config.Zones = {
Size = 1.0,
Type = 59,
Color = 25,
Show = true -- show blip
ShowBlip = true,
ShowMarker = true
},
LTDgasoline = {
@@ -89,6 +91,7 @@ Config.Zones = {
Size = 1.0,
Type = 59,
Color = 25,
Show = true -- show blip
ShowBlip = true,
ShowMarker = true
}
}