# PLAYER::_SET_PLAYER_PROMPT_MELEE_TEXT

- **Hash:** `0x0FAF95D71ED67ADE`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `SetPlayerPromptMeleeText`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **Other names:** `_SET_PLAYER_MELEE_PROMPT_TEXT`
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/_SET_PLAYER_PROMPT_MELEE_TEXT

## Signature

```c
void _SET_PLAYER_PROMPT_MELEE_TEXT(Player player, const char* promptTextKey);
```

## Parameters

- `player` (`Player`)
- `promptTextKey` (`const char*`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

Sets the melee combat prompt for a specific player using a predefined text entry.
Example usage:
PLAYER::_SET_PLAYER_PROMPT_MELEE_TEXT(PLAYER::PLAYER_ID(), MISC::VAR_STRING(10, "LITERAL_STRING", "Throw Punch"));
The prompt for player during melee combat uses this text.
Screenshot: https://imgur.com/gallery/0x0faf95d71ed67ade-GDYsE9L

*Source: VORPCORE RDR3natives*

Sets the melee combat prompt for a specific player using a predefined text entry. use game string or 
AddTextEntry("custom_text", "Throw a punch") and use custom_text in the native

## Usage

### Lua

```lua
SetPlayerPromptMeleeText(player, promptTextKey)

-- always available, by hash
Citizen.InvokeNative(0x0FAF95D71ED67ADE, player, promptTextKey)
```

### JavaScript

```js
SetPlayerPromptMeleeText(player, promptTextKey);

// by hash
Citizen.invokeNative('0x0FAF95D71ED67ADE', player, promptTextKey);
```

### C#

```csharp
Function.Call((Hash)0x0FAF95D71ED67ADE, player, promptTextKey);
```

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