The Lab
ENTITY native

GET_NEAREST_PARTICIPANT_TO_ENTITY

returns Player1 parambuild 1207

Returns the nearest script participant to the entity.

Signature

C
Player GET_NEAREST_PARTICIPANT_TO_ENTITY(Entity entity); // 0x6888A43C35A5F630 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about GET_NEAREST_PARTICIPANT_TO_ENTITY
Name
GET_NEAREST_PARTICIPANT_TO_ENTITY
Hash
0x6888A43C35A5F630
Namespace
Returns
Player
Game build
1207

Examples

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

Lua
local player = Citizen.InvokeNative(0x6888A43C35A5F630, -- GET_NEAREST_PARTICIPANT_TO_ENTITY
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsInteger()
)
print(player)
JavaScript
const player = Citizen.invokeNative("0x6888A43C35A5F630", // GET_NEAREST_PARTICIPANT_TO_ENTITY
  PlayerPedId(), // Entity entity
  Citizen.resultAsInteger()
);
console.log(player)
C#
int player = Function.Call<int>((Hash)0x6888A43C35A5F630, // GET_NEAREST_PARTICIPANT_TO_ENTITY
  API.PlayerPedId() // Entity entity
);
All ENTITY natives

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