fivem icon indicating copy to clipboard operation
fivem copied to clipboard

feat(gta-streaming-five): Background minimap overlays

Open manzarek123 opened this issue 10 months ago • 9 comments

Goal of this PR

Allow the creation of background overlays with AddMinimapOverlay and AddMinimapOverlayWithDepth. This will allow to create overlay behind the GPS or Radius Blip, as well as automatic transparency on minimap roxwood1

minimap.zip Here is a test ressource to help you validate this change

...

How is this PR achieving the goal

By adding a new argument to the natives ...

This PR applies to the following area(s)

FiveM ...

Successfully tested on

Game builds: 1604, 3095, 3407

Platforms: Windows

Checklist

  • [x] Code compiles and has been tested successfully.
  • [x] Code explains itself well and/or is documented.
  • [x] My commit message explains what the changes do and what they are for.
  • [x] No extra compilation warnings are added by these changes.

manzarek123 avatar Mar 07 '25 18:03 manzarek123

Adding a new argument can cause existing scripts to stop working or I'm wrong?

DaniGP17 avatar Mar 07 '25 18:03 DaniGP17

The default (false) will create a foreground overlay like it was before

manzarek123 avatar Mar 07 '25 18:03 manzarek123

But for example C# forces you to send all the arguments to invoke natives, it don't have default values

DaniGP17 avatar Mar 07 '25 18:03 DaniGP17

Ho ok let me check that then, didn't know about that :)

manzarek123 avatar Mar 07 '25 18:03 manzarek123

Thanks, I splitted the definition for C# compatibility

manzarek123 avatar Mar 07 '25 19:03 manzarek123

Everything is ready and tested Let me know if you need more information or changes :)

manzarek123 avatar Mar 25 '25 13:03 manzarek123

Is there a chance this could be merged? I think it would be really useful 🙂 Thank you !

VolCoM1337 avatar May 05 '25 20:05 VolCoM1337

minimap.zip Here is a test ressource to help you validate this change

manzarek123 avatar May 12 '25 10:05 manzarek123

Can this get merged ? @prikolium-cfx

manzarek123 avatar Aug 06 '25 18:08 manzarek123