endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon
END_TEXT_COMMAND_THEFEED_POST_MESSAGETEXT_WITH_CREW_TAG_AND_ADDITIONAL_ICON0x531B84E7DA981FB6The GTA V native END_TEXT_COMMAND_THEFEED_POST_MESSAGETEXT_WITH_CREW_TAG_AND_ADDITIONAL_ICON of the HUD namespace, as LS:MP client scripts call it: the global function endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon, in JavaScript and in Lua.
endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon(
txdName: string,
textureName: string,
flash: boolean,
iconType1: number,
sender: string,
subject: string,
duration: number,
clanTag: string,
iconType2: number,
p9: number
): numberendTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon(
txdName: string,
textureName: string,
flash: boolean,
iconType1: integer,
sender: string,
subject: string,
duration: number,
clanTag: string,
iconType2: integer,
p9: integer
): integerUsage
const result =
endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon(
txdName, textureName, flash, iconType1, sender, subject, duration, clanTag, iconType2, p9
);local result =
endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon(
txdName, textureName, flash, iconType1, sender, subject, duration, clanTag, iconType2,
p9
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
txdName | string | string | string |
textureName | string | string | string |
flash | BOOL | boolean | boolean |
iconType1 | int | number | integer |
sender | string | string | string |
subject | string | string | string |
duration | float | number | number |
clanTag | string | string | string |
iconType2 | int | number | integer |
p9 | int | number | integer |
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This function can show pictures of every texture that can be requested by requestStreamedTextureDict.
List of picNames: https://pastebin.com/XdpJVbHz
flash is a bool for fading in.
iconTypes:
1 : Chat Box
2 : Email
3 : Add Friend Request
4 : Nothing
5 : Nothing
6 : Nothing
7 : Right Jumping Arrow
8 : RP Icon
9 : $ Icon
"sender" is the very top header. This can be any old string.
"subject" is the header under the sender.
"duration" is a multiplier, so 1.0 is normal, 2.0 is twice as long (very slow), and 0.5 is half as long.
"clanTag" shows a crew tag in the "sender" header, after the text. You need to use 3 underscores as padding. Maximum length of this field seems to be 7. (e.g. "MK" becomes "___MK", "ACE" becomes "___ACE", etc.)
iconType2 is a mirror of iconType. It shows in the "subject" line, right under the original iconType.
int IconNotification(char *text, char *text2, char *Subject)
{
beginTextCommandThefeedPost("STRING");
addTextComponentSubstringPlayerName(text);
endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon("CHAR_SOCIAL_CLUB", "CHAR_SOCIAL_CLUB", 1, 7, text2, Subject, 1.0f, "__EXAMPLE", 7);
return endTextCommandThefeedPostTicker(1, 1);
}Reference
- Namespace
- HUD HUD
- In the game
int END_TEXT_COMMAND_THEFEED_POST_MESSAGETEXT_WITH_CREW_TAG_AND_ADDITIONAL_ICON(const char* txdName, const char* textureName, BOOL flash, int iconType1, const char* sender, const char* subject, float duration, const char* clanTag, int iconType2, int p9)- Hash
0x531B84E7DA981FB6- Formerly
_SET_NOTIFICATION_MESSAGE_CLAN_TAG_2