Hello, everyone. I trying to get the first handgun in ped inventory with natives.
Firstly, I trying to do that with RPH API, but it return from inventory only WeaponDescriptor, that don't contain any information about type weapon or it slots, only it hash and asset hash.
Secondly, RPH don't have an any references to the inventory slots, only to objects in it.
Maybe I just don't find the property/method/class for it, but I don't know. So, I tried to find a native for get access to the inventory, but I didn't.
I try to use GET_WEAPONTYPE_SLOT and GET_WEAPONTYPE_GROUP, in parameters I specified "WeaponDescriptor.Hash" and "WeaponDescriptor.Asset.Hash", but it return "0" or crashes. After that I tried to get the simple values with natives (GET_PED_MONEY) and I get the "0" (look at screenshot).
Please tell me, what am I doing wrong?