Use SetGpsCustomRouteRender
SetGpsCustomRouteRender - FiveM Natives @ Cfx.re Docs
SetGpsCustomRouteRender(true, STROKE_WIDTH, LEVEL_MAP)
In my case I have replaced the map by High resolution Satellite map with custom postals and with SetGpsCustomRouteRender(true, 50, LEVEL_MAP)
work nice