-- Display blips on map
Citizen.CreateThread(function()
if (cfg.displayBlips == true) then
for _, item in pairs(repairCfg.mechanics) do
item.blip = AddBlipForCoord(item.x, item.y, item.z)
SetBlipSprite(item.blip, item.id)
SetBlipAsShortRange(item.blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(item.name)
EndTextCommandSetBlipName(item.blip)
end
end
end)
-- World 3D Blips
local markerAlpha = 10
local markerRange = 0.6
local markerTable =
{
-- X, Y, Z
{450.85, -978.72, 30.69}, -- Downtown PD
{371.39, -1612.87, 29.29}, -- Davis PD
{-1112.83, -848.37, 13.44}, -- Vespucci PD
{2475.86, -384.05, 94.40}, -- HP HQ
{1852.77, 3691.92, 34.27}, -- Sandy Shores PD
{-449.97, 6016.30, 31.72}, -- Paleto Bay PD
}
Citizen.CreateThread(function()
local ped = GetPlayerPed(-1)
while true do
Citizen.Wait(0)
local ped = GetPlayerPed(-1)
if DoesEntityExist(ped) and not IsEntityDead(ped) then
local ppos = GetEntityCoords(ped, true)
for k = 1, #markerTable, 1 do
if GetDistanceBetweenCoords(markerTable[k][1],markerTable[k][2],markerTable[k][3],ppos) < 15 then
DrawMarker(1, markerTable[k][1], markerTable[k][2], markerTable[k][3]-1.1, 0, 0, 0, 0.0, 0.0, 0, 0.801, 0.801, 0.6, 2, 80, 206, 200, false, true, true, true, 0, 0)
DrawMarker(1, markerTable[k][1], markerTable[k][2], markerTable[k][3]-1.1, 0, 0, 0, 0.0, 0.0, 0, 0.8, 0.8, 1.0, 2, 80, 206, markerAlpha, false, true, true, true, 0, 0)
end
end
end
end
end)
Unless you mean another type of blip… I have done most so lemme know…