EndTextCommandThefeedPostAward
Docslocal retval = EndTextCommandThefeedPostAward(textureDict, textureName, rpBonus, colorOverlay, titleLabel)Description
Shows an "award" notification above the minimap, lua example result:

Old description:
Example:
UI::_SET_NOTIFICATION_TEXT_ENTRY("HUNT");
UI::_0xAA295B6F28BD587D("Hunting", "Hunting_Gold_128", 0, 109, "HUD_MED_UNLKED");Parameters
| Name | Type | Description |
|---|---|---|
textureDict | char* | The texture dictionary name for the icon on the left. |
textureName | char* | The texture name for the icon on the left. |
rpBonus | int | The gained "RP" amount that will be displayed on the right side of the notification. |
colorOverlay | int | Hudcolor overlay that gets applied on top of the notification, conflicts with text/image visibility in most cases if set to something other than 0. |
titleLabel | char* | The label that will be displayed at the top of the notification (title). |
Returns
intReturns an integer value.
Examples
Official
Citizen.CreateThread(function()
-- Get the ped headshot image.
local handle = RegisterPedheadshot(PlayerPedId())
while not IsPedheadshotReady(handle) or not IsPedheadshotValid(handle) do
Citizen.Wait(0)
end
local txd = GetPedheadshotTxdString(handle)
-- Add the notification text, the more text you add the smaller the font
-- size will become (text is forced on 1 line only), so keep this short!
BeginTextCommandThefeedPost("STRING")
AddTextComponentSubstringPlayerName("You won the match!")
-- Draw the notification
EndTextCommandThefeedPostAward(txd, txd, 200, 0, "FM_GEN_UNLOCK")
-- Cleanup after yourself!
UnregisterPedheadshot(handle)
end)