The Lab
PLAYER native

_FORMAT_PLAYER_NAME_STRING

returns const char*1 parambuild 1207

Returns a formatted version of the player name string suitable for display.

Signature

C
const char* _FORMAT_PLAYER_NAME_STRING(const char* string); // 0x5B6193813E03E4E9 b1207

Parameters

#NameType
1stringconst char*

Facts

Facts about _FORMAT_PLAYER_NAME_STRING
Name
_FORMAT_PLAYER_NAME_STRING
Hash
0x5B6193813E03E4E9
Namespace
Returns
const char*
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x5B6193813E03E4E9, -- _FORMAT_PLAYER_NAME_STRING
  "text", -- const char* string
  Citizen.ResultAsString()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x5B6193813E03E4E9", // _FORMAT_PLAYER_NAME_STRING
  "text", // const char* string
  Citizen.resultAsString()
);
console.log(result)
C#
string result = Function.Call<string>((Hash)0x5B6193813E03E4E9, // _FORMAT_PLAYER_NAME_STRING
  "text" // const char* string
);
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.