Kod:
local cpblips = false
local aptblip = {}
RegisterCommand('evler', function()
cpblips = not cpblips
if cpblips then
for k, v in pairs(Config.Apartments) do
if ownedApartment ~= k and accessApartment ~= k then
aptblip[k] = AddBlipForCoord(v.door)
SetBlipSprite(aptblip[k], 40)
SetBlipScale(aptblip[k], 0.4)
SetBlipColour(aptblip[k], 36)
SetBlipAsShortRange(aptblip[k], true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString("[Apartman#"..k.."]")
EndTextCommandSetBlipName(aptblip[k])
end
Citizen.Wait(0)
end
exports['mythic_notify']:SendAlert('inform', 'Apartmanlar haritana eklendi.')
else
for k, v in pairs(aptblip) do
RemoveBlip(v)
Citizen.Wait(0)
end
aptblip = {}
exports['mythic_notify']:SendAlert('inform', 'Apartmanlar haritandan kaldırıldı.')
end
end)
Ama /evblip yazınca gitmiyor ev blipleri