Big Message - LemonUIbyLemon/LemonUI GitHub Wiki
What are Big Message's
Big Message's are the a special kind of Scaleform used to show a big message on the screen like the Wasted screen, Mission Passed and more.
There are 8 kinds of Big Message styles that you can use in LemonUI.
Basics
As most LemonUI elements, you need to add them to an Object Pool. Feel free to check the Object Pool section of the Quick Start Guide and come back once you have your Pool ready to work.
Once you have your Big Message set up, you need to make it Visible, just like a menu. You can do this by setting the Visible
property to true
.
Customizable
The default mode is called Customizable. This is just a simple Big Message with a Title and Message, alongside customizable colors. The colors are HUD Colors, you can find a list of them in the FiveM Docmentation.
Here is an example with the text color set to HUD_COLOUR_NET_PLAYER3 and background color set to HUD_COLOUR_NET_PLAYER19:
BigMessage message = new BigMessage("Title", "Message")
{
TextColor = 30,
BackgroundColor = 46,
Type = MessageType.Customizable
};
Rank Up
The Rank Up mode shows a simple white text message in a black background. It is used for the Rank Up messages in GTA Online.
Here is an example with just a title and message:
BigMessage message = new BigMessage("Title", "Message")
{
Type = MessageType.RankUp
};
Mission Passed Old Gen
The Mission Passed Old Gen mode also shows a simple white text message in a black background, but it uses the old Xbox 360/PS3 mission passed banner.
Here is an example with just a title and message:
BigMessage message = new BigMessage("Title", "Message")
{
Type = MessageType.MissionPassedOldGen
};
Wasted
The Wasted mode is pretty much the same as the Rank Up mode, but its shown on the center of the screen. It was used for the wasted screen in the Xbox 360/PS3 versions of the game.
Here is an example with just a title and message:
BigMessage message = new BigMessage("Title", "Message")
{
Type = MessageType.Wasted
};
Plane
The Plane mode is the banner used for the Freemode Events in GTA Online.
Here is an example with just a title and message:
BigMessage message = new BigMessage("Title", "Message")
{
Type = MessageType.Plane
};
Cops and Crooks
The Cops and Crooks mode is the banner originally used for the beta era Cops and Crooks mode that can be seen in an archived version of Josimar's/Steven Walsh portfolio.
Here is an example with a title, message and rank:
BigMessage message = new BigMessage("Title", "Message", "12")
{
Type = MessageType.CopsAndCrooks
};
Weapon
The Weapon mode is similar to the Customizable mode, but without color support and it allows you to show the image of a weapon.
Here is an example with a title, message and weapon:
BigMessage message = new BigMessage("Title", "Message")
{
Weapon = WeaponHash.Pistol,
Type = MessageType.Weapon
};
[!WARNING] The Weapon property is not supported in RageMP and AltV. You will need to use the WeaponHash property and set the hash number for the weapon. For example, 453432689 or 0x1B06D571 for the Pistol:
BigMessage message = new BigMessage("Title", "Message")
{
WeaponHash = 0x1B06D571,
Type = MessageType.Weapon
};
Centered Large
[!CAUTION] It is not recommended to use this mode because the Scaleform itself is incomplete.
The Centered Large mode is an incomplete version of the Customizable scaleform.
Here is an example with just a title and message:
BigMessage message = new BigMessage("Title", "Message")
{
Type = MessageType.CenteredLarge
};