# UIFEED::_UI_FEED_GET_MESSAGE_STATE

- **Hash:** `0x59FA676177DBE4C9`
- **Namespace:** UIFEED
- **Runtime name (Lua/JS):** `UiFeedGetMessageState`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/UIFEED/_UI_FEED_GET_MESSAGE_STATE

## Signature

```c
int _UI_FEED_GET_MESSAGE_STATE(int feedMessage);
```

## Parameters

- `feedMessage` (`int`)

## Returns

`int`

## Description

Returns messageState, see https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eUIMessageState

## Usage

### Lua

```lua
local retval = UiFeedGetMessageState(feedMessage)

-- always available, by hash
local retval = Citizen.InvokeNative(0x59FA676177DBE4C9, feedMessage, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = UiFeedGetMessageState(feedMessage);

// by hash
const retval = Citizen.invokeNative('0x59FA676177DBE4C9', feedMessage, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x59FA676177DBE4C9, feedMessage);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## Related enums

- [eUIMessageState](https://natives.borderlinerp.com/enums/eUIMessageState.md) — 8 values

*Sources: alloc8or RDR3 NativeDB.*
