GET_PLAYER_NAME
Returns the name of player.
Signature
const char* GET_PLAYER_NAME(Player player); // 0x7124FD9AC0E01BA0 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
Facts
| 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.
local result = Citizen.InvokeNative(0x7124FD9AC0E01BA0, -- GET_PLAYER_NAME
PlayerId(), -- Player player
Citizen.ResultAsString()
)
print(result)const result = Citizen.invokeNative("0x7124FD9AC0E01BA0", // GET_PLAYER_NAME
PlayerId(), // Player player
Citizen.resultAsString()
);
console.log(result)string result = Function.Call<string>((Hash)0x7124FD9AC0E01BA0, // GET_PLAYER_NAME
API.PlayerId() // Player player
);Related PLAYER natives
- GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_MP
- GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER
- GET_PLAYER_CURRENT_STEALTH_NOISE
- GET_PLAYER_GROUP
- GET_PLAYER_INDEX
- GET_PLAYER_INTERACTION_TARGET_ENTITY
- GET_PLAYER_INVINCIBLE
- GET_PLAYER_PED
- GET_PLAYER_PED_SCRIPT_INDEX
- GET_PLAYER_RECEIVED_BATTLE_EVENT_RECENTLY
- GET_PLAYER_TARGET_ENTITY
- GET_PLAYER_TEAM
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.