RedM Natives

_SET_PLAYER_PROMPT_MELEE_TEXT

Sets the melee combat prompt for a specific player using a predefined text entry.

Hash0x0FAF95D71ED67ADE
Runtime nameSetPlayerPromptMeleeText
NamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_SET_PLAYER_MELEE_PROMPT_TEXT

Signature

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

Parameters

NameTypeDescription
playerPlayer—
promptTextKeyconst char*—

Returns void

Description

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

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
SetPlayerPromptMeleeText(player, promptTextKey)

-- always works, by hash
Citizen.InvokeNative(0x0FAF95D71ED67ADE, player, promptTextKey)
JavaScript and C#
JavaScript
SetPlayerPromptMeleeText(player, promptTextKey);

// by hash
Citizen.invokeNative('0x0FAF95D71ED67ADE', player, promptTextKey);
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.