qbcore-framework / qb-hud

Player HUD System
45 stars 209 forks source link

[BUG] Minimap size not set on first load/fresh load after cache clear #170

Closed ChickenDipper1 closed 1 year ago

ChickenDipper1 commented 1 year ago

Summary

The minimap will not have any size applied to it on a players first server join or if a player deletes fivem cache

Reproduction

  1. Join server for the first time, map will show as below. image

  2. Refresh QB-hud or leave and join server or use "Reset settings" in hud menu, the map will then be resized as below. image

Using PS-hud and don't have this issue, PS-hud must be applying the default settings on first load.

This isn't related to the border or safe zone settings, this is the actual map size not being correct.

Expected behavior

Map should be correct size on first load/join.

Actual behavior

Map does not resize to correct size.

Additional context

No response

Last Updated

Replaced qb-hud when testing with fresh install, same issue.

Custom Resources

No

Resource Rename

No

tom-osborne commented 1 year ago

@ChickenDipper1 are you by chance playing in windowed mode? (or anything other than fullscreen?)

ChickenDipper1 commented 1 year ago

@tom-osborne yes while building the server, but this still happens in full screen too.

RumDum3 commented 1 year ago

should be fixed by just adding repeat Citizen.Wait(250) until NetworkIsPlayerActive(PlayerId()) before the minimap stuff loads

centriukas commented 1 year ago

should be fixed by just adding repeat Citizen.Wait(250) until NetworkIsPlayerActive(PlayerId()) before the minimap stuff loads

where this should go which file?

GhzGarage commented 1 year ago

Do we know if this issue still exists?

CrystalTwoK commented 1 year ago

@GhzGarage still exists and sometimes, in my case, the minimap loads attached to the left border with 0px margin.

github-actions[bot] commented 1 year ago

This issue has had 60 days of inactivity & will close within 7 days

promiiss033 commented 2 months ago

still got this