GET_NEAREST_PARTICIPANT_TO_ENTITY
Hash
0x6888A43C35A5F630Runtime name
GetNearestParticipantToEntityNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
Signature
Player GET_NEAREST_PARTICIPANT_TO_ENTITY(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Player
Usage
local retval = GetNearestParticipantToEntity(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x6888A43C35A5F630, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetNearestParticipantToEntity(entity);
// by hash
const retval = Citizen.invokeNative('0x6888A43C35A5F630', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x6888A43C35A5F630, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.