The Lab
MISC native

_GET_ITEM_TYPE

returns int1 parambuild 1207

Returns an integer code describing the type of object referenced by handle, such as ped, vehicle or object.

Signature

C
int _GET_ITEM_TYPE(ScrHandle handle); // 0xDC8D2FF478DF9553 b1207

Parameters

#NameType
1handleScrHandle

Facts

Facts about _GET_ITEM_TYPE
Name
_GET_ITEM_TYPE
Hash
0xDC8D2FF478DF9553
Namespace
Returns
int
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xDC8D2FF478DF9553, -- _GET_ITEM_TYPE
  0, -- ScrHandle handle
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xDC8D2FF478DF9553", // _GET_ITEM_TYPE
  0, // ScrHandle handle
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xDC8D2FF478DF9553, // _GET_ITEM_TYPE
  0 // ScrHandle handle
);
All MISC natives

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