RedM Natives

GET_NEAREST_PARTICIPANT_TO_ENTITY

Hash0x6888A43C35A5F630
Runtime nameGetNearestParticipantToEntity
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207

Signature

Player GET_NEAREST_PARTICIPANT_TO_ENTITY(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns Player

Usage

Lua
local retval = GetNearestParticipantToEntity(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x6888A43C35A5F630, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetNearestParticipantToEntity(entity);

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

Sources

alloc8or RDR3 NativeDB

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