ScaleformUI - Never Trust Avocados edition!
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));
-- 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
- chore: bump version by @Local9 in #190
- Lua: fixed DetailsWindow issue by @aprobeni in #191
- Feat: TaxiMeter Scaleform by @Mycroft-Studios in #192
- Web experiment by @manups4e in #193
- Fix typos in function documentations + edits to MissionSelector by @Mathu-lmn in #195
- Update Readme to add the newest features and mention that Lua is supported too :) by @Mathu-lmn in #196
New Contributors
- @aprobeni made their first contribution in #191
- @Mycroft-Studios made their first contribution in #192
Full Changelog: 4.9...5.0