The Lab
ENTITY native

GET_OBJECT_INDEX_FROM_ENTITY_INDEX

returns Object1 parambuild 1207

Casts an entity handle to an object handle.

Signature

C
Object GET_OBJECT_INDEX_FROM_ENTITY_INDEX(Entity entity); // 0x280BBE5601EAA983 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about GET_OBJECT_INDEX_FROM_ENTITY_INDEX
Name
GET_OBJECT_INDEX_FROM_ENTITY_INDEX
Hash
0x280BBE5601EAA983
Namespace
Returns
Object
Game build
1207

Examples

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

Lua
local objectOut = Citizen.InvokeNative(0x280BBE5601EAA983, -- GET_OBJECT_INDEX_FROM_ENTITY_INDEX
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsInteger()
)
print(objectOut)
JavaScript
const objectOut = Citizen.invokeNative("0x280BBE5601EAA983", // GET_OBJECT_INDEX_FROM_ENTITY_INDEX
  PlayerPedId(), // Entity entity
  Citizen.resultAsInteger()
);
console.log(objectOut)
C#
int objectOut = Function.Call<int>((Hash)0x280BBE5601EAA983, // GET_OBJECT_INDEX_FROM_ENTITY_INDEX
  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.