Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Natives don't return the value (RPH)

Featured Replies

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?

Could contain: text, screenshot, software, multimedia software, display, graphics software, editing, computer icon

  • Community Team

For the get money:

the money from the player is not the money from the story mode peds.

the players money is then treated as a normal npc ped and the maximum money you can have is 65536 -> 16^4

if you go on duty this value might be set to 0, so if you give yourself money then, it should return the new value then.

 

for the weapon stuff pls provide another screenshot how you’ve done that

Edited by Yasd

Creator of MCCallouts 🚓🕵🏽‍♂️
Check out the MCCallouts
Discord Server! 💻

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.