RedM Natives

GET_PLAYER_NAME

Hash0x7124FD9AC0E01BA0
Runtime nameGetPlayerName
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x6D0DE6A7B5DA71F8

Signature

const char* GET_PLAYER_NAME(Player player);

Parameters

NameTypeDescription
playerPlayer—

Returns const char*

Usage

Lua
local retval = GetPlayerName(player)

-- always works, by hash
local retval = Citizen.InvokeNative(0x7124FD9AC0E01BA0, player, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = GetPlayerName(player);

// by hash
const retval = Citizen.invokeNative('0x7124FD9AC0E01BA0', player, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0x7124FD9AC0E01BA0, player);

Sources

alloc8or RDR3 NativeDB

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