RedM Natives

_FORMAT_PLAYER_NAME_STRING

Hash0x5B6193813E03E4E9
Runtime nameFormatPlayerNameString
NamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207

Signature

const char* _FORMAT_PLAYER_NAME_STRING(const char* string);

Parameters

NameTypeDescription
stringconst char*—

Returns const char*

Usage

Lua
local retval = FormatPlayerNameString(string)

-- always works, by hash
local retval = Citizen.InvokeNative(0x5B6193813E03E4E9, string, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = FormatPlayerNameString(string);

// by hash
const retval = Citizen.invokeNative('0x5B6193813E03E4E9', string, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0x5B6193813E03E4E9, string);
  • 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

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