Okay, i changed it like shown in ther picture, now the information works perfect.

I lowered it :wink: - Only set the coords at “z” -1.0, then its even to the ground.

    --lib.showTextUI('Airdrop wird abgeworfen. Fahre zum Abwurfpunkt.')
    wayp = AddBlipForCoord(dropLocation.x, dropLocation.y, dropLocation.z)
    SetBlipRoute(wayp, true)
    SetBlipRouteColour(wayp, 66)

    SetBlipAlpha(blip, 0)

    local _, z = GetGroundZFor_3dCoord(dropLocation.x, dropLocation.y, dropLocation.z, 0)
    UseParticleFxAssetNextCall('core')
    if z == 0.0 then
        z = dropLocation.z
    end
    local size = 1.0
    smoke = StartParticleFxLoopedAtCoord('exp_grd_flare', vector3(dropLocation.x, dropLocation.y, z-1.0), 0.0, 0.0, 0.0, size, false, false, false, false)
    SetParticleFxLoopedAlpha(smoke, 0.8)

    CreateThread(function()
        while currentDrop do
            local playerCoords = GetEntityCoords(PlayerPedId())
            local distance = #(playerCoords - dropLocation)

            if distance < Config.DropRadius then
                TriggerServerEvent('blackmarket:spawnAirdrop', dropLocation)
                break
            end
            Wait(1000)
        end
    end)
end)
1 Like