_GET_VEHICLE_FROM_INDEXED_ITEM
Returns the vehicle referenced by the item set entry item.
Signature
Vehicle _GET_VEHICLE_FROM_INDEXED_ITEM(ScrHandle item); // 0xE578C8AE173719B3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | item | ScrHandle |
Facts
| Name | _GET_VEHICLE_FROM_INDEXED_ITEM |
|---|---|
| Hash | 0xE578C8AE173719B3 |
| Namespace | |
| Returns | Vehicle |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local vehicle = Citizen.InvokeNative(0xE578C8AE173719B3, -- _GET_VEHICLE_FROM_INDEXED_ITEM
0, -- ScrHandle item
Citizen.ResultAsInteger()
)
print(vehicle)const vehicle = Citizen.invokeNative("0xE578C8AE173719B3", // _GET_VEHICLE_FROM_INDEXED_ITEM
0, // ScrHandle item
Citizen.resultAsInteger()
);
console.log(vehicle)int vehicle = Function.Call<int>((Hash)0xE578C8AE173719B3, // _GET_VEHICLE_FROM_INDEXED_ITEM
0 // ScrHandle item
);Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.