Skip to content

ScaleformUI - Never Trust Avocados edition!

Compare
Choose a tag to compare
@manups4e manups4e released this 03 Mar 16:35
· 145 commits to master since this release

This new version is dedicated to a friend of mine who taught me so much and made me feel so much included and showed me how sharing with the community can be fun and useful! D0p3t 🩷 we all miss you buddy.

This new version is my Holy Grail, yes because after years of research i was able to finally manage to include the Minimap into Pause Menu and Lobby Menu!

Code is very easy and same for both Lua and C#
-- To add a route to the minimap (race track for example) simply use the provided MinimapRoute object

  • C#:
playersTab.Minimap.MinimapRoute.RouteColor = HudColor.HUD_COLOUR_RED;
playersTab.Minimap.MinimapRoute.StartPoint = new MinimapRaceCheckpoint(new Vector3(-213.4f, -1426.1f, 31.3f), (int)BlipSprite.Race);
playersTab.Minimap.MinimapRoute.CheckPoints.Add(new MinimapRaceCheckpoint(new Vector3(-275.88f, -1145.813f, 23.0f), (int)BlipSprite.Number1));
playersTab.Minimap.MinimapRoute.CheckPoints.Add(new MinimapRaceCheckpoint(new Vector3(-105.36f, -1144.17f, 25.78f), (int)BlipSprite.Number2));
playersTab.Minimap.MinimapRoute.EndPoint = new MinimapRaceCheckpoint(new Vector3(-213.4f, -1426.1f, 31.3f), (int)BlipSprite.RaceFinish);
  • Lua:
playersTab.Minimap.MinimapRoute.RouteColor = HudColours.HUD_COLOUR_RED
playersTab.Minimap.MinimapRoute.StartPoint = MinimapRaceCheckpoint.New(309, vector3(-213.4, -1426.1, 31.3));
table.insert(playersTab.Minimap.MinimapRoute.CheckPoints, MinimapRaceCheckpoint.New(17,vector3(-275.88, -1145.813, 23.0)));
table.insert(playersTab.Minimap.MinimapRoute.CheckPoints, MinimapRaceCheckpoint.New(18,vector3(-105.36, -1144.17, 25.78)));
playersTab.Minimap.MinimapRoute.EndPoint = MinimapRaceCheckpoint.New(38, vector3(-213.4, -1426.1, 31.3));

image

-- To add free Blips to the Minimap you can use the provided MinimapBlips library (blips are made with FakeBlip class/metatable as they are not real blips!!)

you can clear the minimap to use it with another item by simply using the Minimap.ClearMinimap() / Minimap:ClearMinimap() (Lua),
and it can be enabled/disabled by Minimap.Enable = true / Minimap:Enable(true) (Lua)

⚠️⚠️ UPDATING THE ASSETS RESOURCE IS MANDATORY!!

What's Changed

New Contributors

Full Changelog: 4.9...5.0