The Lab
PLAYER native

GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER

returns Hash1 parambuild 1207

Returns the character name hash shown to the local player for ped.

Signature

C
Hash GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER(Ped ped); // 0x36E3D8B5A6552FE8 b1207

Parameters

#NameType
1pedPed

Facts

Facts about GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER
Name
GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER
Hash
0x36E3D8B5A6552FE8
Namespace
Returns
Hash
Game build
1207

Examples

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

Lua
local hash = Citizen.InvokeNative(0x36E3D8B5A6552FE8, -- GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER
  PlayerPedId(), -- Ped ped
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x36E3D8B5A6552FE8", // GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER
  PlayerPedId(), // Ped ped
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x36E3D8B5A6552FE8, // GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER
  API.PlayerPedId() // Ped ped
);
All PLAYER natives

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