GET_NEAREST_PLAYER_TO_ENTITY_ON_TEAM
Hash
0xB2C30C3B4AFF718CRuntime name
GetNearestPlayerToEntityOnTeamNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x4DC9A62F844D9337Signature
Player GET_NEAREST_PLAYER_TO_ENTITY_ON_TEAM(Entity entity, int team, Ped playerPedToIgnore, int flags);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
team | int | — |
playerPedToIgnore | Ped | — |
flags | int | — |
Returns Player
Usage
local retval = GetNearestPlayerToEntityOnTeam(entity, team, playerPedToIgnore, flags)
-- always works, by hash
local retval = Citizen.InvokeNative(0xB2C30C3B4AFF718C, entity, team, playerPedToIgnore, flags, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetNearestPlayerToEntityOnTeam(entity, team, playerPedToIgnore, flags);
// by hash
const retval = Citizen.invokeNative('0xB2C30C3B4AFF718C', entity, team, playerPedToIgnore, flags, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xB2C30C3B4AFF718C, entity, team, playerPedToIgnore, flags);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.