A FiveM resource that replaces the in-game minimap with a custom map showing postal codes across the GTA V world.
- Original map by Virus_City — https://forum.cfx.re/t/release-postal-code-map-minimap-new-improved-v1-3/147458
- Minimap loader script based on Roxwood Minimap by RRixxles — https://github.com/RRixxles/Roxwood-Minimap/
Postal codes become blurry when zooming in (occurs when Graphics > Texture Quality is set to Normal or below). Fixed in Rev2.
Fixed a client crash that occurred when disconnecting and reconnecting to the server.
Background:
On reconnect, FiveM reinitializes the streaming system via RELOAD_MAP_STORE. The original script called AddMinimapOverlay("MINIMAP_LOADER.gfx") immediately on resource start, which raced against this initialization and caused a crash in gta-streaming-five.dll.
Analysis was performed using crash dumps (CitizenFX_log) which showed the following sequence every time:
Performing deferred RELOAD_MAP_STORE
Game finished loading!
Error: SendNetPacket called from multiple threads! ← crash
gta-streaming-five.dll+70E67
Changes (client.lua):
- Fixed
AddMinimapOverlaycall timing (direct cause of crash):AddMinimapOverlay("MINIMAP_LOADER.gfx")races againstRELOAD_MAP_STOREon reconnect and crashesgta-streaming-five.dll. Now waits until bothNetworkIsGameInProgress()andIsMinimapRendering()returntrue, then adds an additional 3-second delay to ensure the streaming system has fully settled. - Added
onClientResourceStophandler: No cleanup was performed on resource stop. Now callsRemoveMinimapOverlay,RemoveBlipon all dummy blips, andResetMapZoomDataLevel. - Fixed nil crash in
extendPauseMenuMapBounds: WhenextraTilesis empty,drawnTiles[1]isnil, causing a Lua script error. Added an#extraTilesNames == 0early-return guard. - Fixed radar zoom loop: Changed
Citizen.Wait(1)(1000 calls/sec) infinite loop toCitizen.Wait(0)(frame-synced) and added aradarLoopActiveflag so the loop can be stopped cleanly fromonClientResourceStop.
The known issue — postal codes appearing blurry when zooming in, which occurred when Graphics > Texture Quality was set to Normal or below — is resolved in this revision.
Background:
A community fix for the blur issue was previously published at https://forum.cfx.re/t/free-release-postal-code-map-minimap-fixed/4882127, but it is no longer available.
Separately, Roxwood Minimap was found to have no such issues.
Changes:
- Replaced the original script with the one from Roxwood Minimap (
client.lua,config.lua,fxmanifest.lua,MINIMAP_LOADER.gfx). - Re-processed the original
.ytdtexture files: set the mipmap level to1for all files where it was not already1. This eliminates the blur when zooming in and the rendering issue at Normal texture quality.
- Copy the
postal-code-mapfolder into your FiveM server'sresourcesdirectory. - Add the following line to your
server.cfg:ensure postal-code-map - Restart your server.
- Replaces the default minimap textures with a custom postal code map.
- Supports extra map tiles via
config.lua. - Loads the minimap via
MINIMAP_LOADER.gfxfor correct rendering at all texture quality settings.
| File | Description |
|---|---|
fxmanifest.lua |
Resource manifest (replaces __resource.lua) |
config.lua |
Extra tile configuration |
client.lua |
Minimap loader script (based on Roxwood Minimap) |
MINIMAP_LOADER.gfx |
Scaleform file used to load the minimap tiles |
stream/ |
Custom minimap texture files (.ytd, .ydd) |