RedM Natives

GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER

Hash0x36E3D8B5A6552FE8
Runtime nameGetTargetCharacterNameForLocalPlayer
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207

Signature

Hash GET_TARGET_CHARACTER_NAME_FOR_LOCAL_PLAYER(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns Hash

Usage

Lua
local retval = GetTargetCharacterNameForLocalPlayer(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x36E3D8B5A6552FE8, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetTargetCharacterNameForLocalPlayer(ped);

// by hash
const retval = Citizen.invokeNative('0x36E3D8B5A6552FE8', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x36E3D8B5A6552FE8, ped);

Sources

alloc8or RDR3 NativeDB

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