GET_VEHICLE_INDEX_FROM_ENTITY_INDEX
Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
Hash
0xDF1E5AAC561AFC59Runtime name
GetVehicleIndexFromEntityIndexNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x4B53F92932ADFAC0Signature
Vehicle GET_VEHICLE_INDEX_FROM_ENTITY_INDEX(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Vehicle
Description
Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
Usage
local retval = GetVehicleIndexFromEntityIndex(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xDF1E5AAC561AFC59, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetVehicleIndexFromEntityIndex(entity);
// by hash
const retval = Citizen.invokeNative('0xDF1E5AAC561AFC59', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xDF1E5AAC561AFC59, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.