_GET_ITEM_TYPE
Hash
0xDC8D2FF478DF9553Runtime name
GetItemTypeNamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _GET_ITEM_TYPE(ScrHandle handle);Parameters
| Name | Type | Description |
|---|---|---|
handle | ScrHandle | — |
Returns int
Description
0 = invalid
1 = CEntity
2 = rage::volBase
3 = rage::volSphere
4 = rage::volBox
5 = rage::volAggregate
6 = rage::volCylinder
7 = CScriptedCoverPoint
8 = rage::ptfxScriptInfo
9 = CPed
10 = CVehicle
11 = CObject
12 = CItemSet
13 = CPersistentCharacter
Usage
local retval = GetItemType(handle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xDC8D2FF478DF9553, handle, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetItemType(handle);
// by hash
const retval = Citizen.invokeNative('0xDC8D2FF478DF9553', handle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xDC8D2FF478DF9553, handle);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.