# HUD::_GET_TEXT_SUBSTRING_3

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

## Signature

```c
const char* _GET_TEXT_SUBSTRING_3(const char* text, int begin, int length);
```

## Parameters

- `text` (`const char*`)
- `begin` (`int`)
- `length` (`int`)

## Returns

`const char*`

## Description

*Source: alloc8or RDR3 NativeDB*

_GET_BOUNTY* - _GET_CHARACTER*

*Source: VORPCORE RDR3natives*

Example: HUD::_0x806862E5D266CF38(&string1, 0, HUD::GET_LENGTH_OF_LITERAL_STRING(&string1) - HUD::GET_LENGTH_OF_LITERAL_STRING("_DUALWIELD"))

## Usage

### Lua

```lua
local retval = GetTextSubstring_3(text, begin, length)

-- always available, by hash
local retval = Citizen.InvokeNative(0x806862E5D266CF38, text, begin, length, Citizen.ResultAsString())
```

### JavaScript

```js
const retval = GetTextSubstring_3(text, begin, length);

// by hash
const retval = Citizen.invokeNative('0x806862E5D266CF38', text, begin, length, Citizen.returnResultAnyway(), Citizen.resultAsString());
```

### C#

```csharp
string retval = Function.Call<string>((Hash)0x806862E5D266CF38, text, begin, length);
```

- 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.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
