EndTextCommandThefeedPostStats
Docslocal retval = EndTextCommandThefeedPostStats(statTitle, iconEnum, stepVal, barValue, isImportant, picTxd, picTxn)Description
Parameters
| Name | Type | Description |
|---|---|---|
statTitle | char* | — |
iconEnum | int | — |
stepVal | BOOL | — |
barValue | int | — |
isImportant | BOOL | — |
picTxd | char* | — |
picTxn | char* | — |
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
BeginTextCommandThefeedPost("PS_UPDATE")
AddTextComponentInteger(50)
-- Set the notification title and progress
local title = "PSF_STAMINA"
local p1 = 14
local lastProgress = 25
local newProgress = 50
local unknownBool = false
EndTextCommandThefeedPostStats(title, p1, newProgress, lastProgress, unknownBool, txd, txd)
-- Draw the notification
local showInBrief = true
local blink = false -- blink doesn't work when using icon notifications.
EndTextCommandThefeedPostTicker(blink, showInBrief)
-- Cleanup after yourself!
UnregisterPedheadshot(handle)
end)