RegisterNetEvent("fantastic:blipAcKapa")
AddEventHandler("fantastic:blipAcKapa", function()
if blipc then
pasifblip()
blipc = false
else
aktifblip()
blipc = true
end
end)
function aktifblip()
for k,v in pairs(Config.GasStations) do
local blipc = AddBlipForCoord(v.coords)
SetBlipSprite(blipc, 361)
SetBlipScale(blipc, 0.5)
SetBlipColour(blipc, 60)
SetBlipDisplay(blipc, 4)
SetBlipAsShortRange(blipc, atrue)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString("Garaj")
EndTextCommandSetBlipName(blipc)
table.insert(aktifblipler, blipc)
end
end
function pasifblip()
for i = 1, #aktifblipler do
RemoveBlip(aktifblipler)
end
for i = 1, #aktifblipler do
table.remove(aktifblipler)
end
end
Config.Garages = {
[1] = { coords = vector3(99.999, 999.999, 999.999), r = 15},
}