altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Custom Map on Radar is not Full Loading.

Open Ingo1997 opened this issue 3 years ago • 13 comments

Client/server version Build #4.0-DEV8, branch DEV

Current behavior The Custom Map/Minimap is not Showing at many Points on the Radar after Spawn. (see Screenshot) When i drive arround the Map and come back to the point he is not Loading, is she loaded. On the ESC/Paused Menu is the Map Full Showing without Issues.

Expected behavior The Custom Minimap would full loading at spawn and show it right. and on the ESC/Paused Menu is the Map Full Showing without Issues.

Steps to reproduce I use the Tutorial at the Discord from Channel #scripting-info. and i use the MapZoomData API with right data from my old FiveM Project and under FiveM its work the Minimap without issues.

Context (environment) Screenshots: minimap Issue 1

minimap Issue 2

ESC/Paused Menu

Possible solution

Ingo1997 avatar Jun 06 '21 17:06 Ingo1997

I have this problem too, but i saw the same unloaded area on the Pause menu map before using MapZoomData API. Maybe it gives some starting point. maphole maphole_1

csipkesz avatar Jun 08 '21 08:06 csipkesz

Sometimes when we go to the pause menu map and zoom in fully, the minimap is fixed

csipkesz avatar Jun 11 '21 12:06 csipkesz

At the moment we also cannot stream minimaps that are outwith default map quadrants, for example: https://www.gta5-mods.com/misc/atlas-colored-map-with-radar-for-vice-cry-lorenvidican

Would be awesome if we could have this functionality. If not possible server-side, then perhaps allow players to load these mods themselves client-side?

MickMelon avatar Aug 23 '21 13:08 MickMelon

It's a long time ago, but give new information for a fix ? or can planned for the next update ?

Ingo1997 avatar Dec 01 '21 02:12 Ingo1997

After driving about for some time, the minimap displays properly, it seems it's very hit or miss

ZackaryH8 avatar Sep 26 '22 18:09 ZackaryH8

Hi, any news ?

NeekoDev avatar Jan 11 '23 09:01 NeekoDev

I can confirm this issue

image

vanlueckn avatar Mar 09 '23 15:03 vanlueckn

Works in dev/15.0-dev11

C0kkie avatar Mar 27 '23 11:03 C0kkie

I don't know if I did something wrong but 15.16 release still has some of it Map tested be the https://github.com/omgugly/dlk_maps_fivem/tree/main/map-atlas

Running following code (with/without does same thing)

static setMapZoomDataLevel(level: string, zoomScale: number, zoomSpeed: number, scrollSpeed: number, tilesX: number, tilesY: number) {
		const zoomData = alt.MapZoomData.get(level);
		zoomData.fZoomScale = zoomScale;
		zoomData.fZoomSpeed = zoomSpeed;
		zoomData.fScrollSpeed = scrollSpeed;
		zoomData.vTilesX = tilesX;
		zoomData.vTilesY = tilesY;
	}

	static async fixMap() {

		this.setMapZoomDataLevel('ZOOM_LEVEL_0', 0.96, 0.9, 0.08, 0.0, 0.0);// -- Level 0
		this.setMapZoomDataLevel('ZOOM_LEVEL_1', 1.6, 0.9, 0.08, 0.0, 0.0);// -- Level 1
		this.setMapZoomDataLevel('ZOOM_LEVEL_2', 8.6, 0.9, 0.08, 0.0, 0.0);// -- Level 2
		this.setMapZoomDataLevel('ZOOM_LEVEL_3', 12.3, 0.9, 0.08, 0.0, 0.0);// -- Level 3
		this.setMapZoomDataLevel('ZOOM_LEVEL_4', 24.3, 0.9, 0.08, 0.0, 0.0);// -- Level 4
		this.setMapZoomDataLevel('ZOOM_LEVEL_GOLF_COURSE', 55.0, 0.0, 0.1, 2.0, 1.0);// -- ZOOM_LEVEL_GOLF_COURSE
		this.setMapZoomDataLevel('ZOOM_LEVEL_INTERIOR', 450.0, 0.0, 0.1, 1.0, 1.0);// -- ZOOM_LEVEL_INTERIOR
		this.setMapZoomDataLevel('ZOOM_LEVEL_GALLERY', 4.5, 0.0, 0.0, 0.0, 0.0);// -- ZOOM_LEVEL_GALLERY
		this.setMapZoomDataLevel('ZOOM_LEVEL_GALLERY_MAXIMIZE', 11.0, 0.0, 0.0, 2.0, 3.0);// -- ZOOM_LEVEL_GALLERY_MAXIMIZE

		const radarZoomLevel: number = 1100;
		alt.setInterval(() => {
			const onFoot = native.isPedOnFoot(player);
			if (onFoot) return native.setRadarZoom(radarZoomLevel);
			const insideVehicle = native.isPedInAnyVehicle(player, false);
			if (insideVehicle) return native.setRadarZoom(radarZoomLevel);
		}, 0);
	}

2023-10-23_03-34 2023-10-23_03-34_1

(I'm sorry for testing on release but I read in this issue that it is fixed in v15...)

xtance avatar Oct 23 '23 00:10 xtance

It was fixed in early v15-dev but is now broken again

vanlueckn avatar Oct 24 '23 17:10 vanlueckn

Is another bug fix planned?

Ingo1997 avatar Dec 12 '23 16:12 Ingo1997

The status fixed has been removed, but why has it not been included on a new roadmap? I mean it was fixed why is the error back?

Ingo1997 avatar Mar 26 '24 13:03 Ingo1997

gives newer Information ?

Ingo1997 avatar May 26 '24 14:05 Ingo1997