The Lab
PLAYER native

GET_PLAYER_NAME

returns const char*1 parambuild 1207

Returns the name of player.

Signature

C
const char* GET_PLAYER_NAME(Player player); // 0x7124FD9AC0E01BA0 b1207

Parameters

#NameType
1playerPlayer

Facts

Facts about GET_PLAYER_NAME
Name
GET_PLAYER_NAME
Hash
0x7124FD9AC0E01BA0
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(0x7124FD9AC0E01BA0, -- GET_PLAYER_NAME
  PlayerId(), -- Player player
  Citizen.ResultAsString()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x7124FD9AC0E01BA0", // GET_PLAYER_NAME
  PlayerId(), // Player player
  Citizen.resultAsString()
);
console.log(result)
C#
string result = Function.Call<string>((Hash)0x7124FD9AC0E01BA0, // GET_PLAYER_NAME
  API.PlayerId() // Player player
);
All PLAYER natives

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