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.

[SOLVED] Datatype for Pickup

Featured Replies

Pickup CREATE_PICKUP(Hash pickupHash, float posX, float posY, float posZ, int p4, int value, BOOL p6, Hash modelHash)

Anyone know what sort of datatype i can use for Pickup? Or does this just fall under Object.

Edited by khorio

1 hour ago, khorio said:

Pickup CREATE_PICKUP(Hash pickupHash, float posX, float posY, float posZ, int p4, int value, BOOL p6, Hash modelHash)

Anyone know what sort of datatype i can use for Pickup? Or does this just fall under Object.

There isn't any built-in class in RPH for pickups. If you aren't going to use a lot the pickups just use an uint as the handle or a PoolHandle, whatever you prefer.
If you are going to use them a lot I recommend you to create a class, a little example of how to do it:
 

Spoiler

    class Pickup
    {
        // You might also want to inherit from the IHandleable interface (it obligates you to have the Handle propertie, a IsValid() method and an Equals(IHandleable) method)
        // or any other interface you might want from RPH

        public PoolHandle Handle { get; }

        public Pickup(/*params*/)
        {
            Handle = NativeFunction.CallByName<uint>("CREATE_PICKUP", /*params*/);
        }

        // add any pickup natives via properties or methods here, to pass the handle use Handle.Value
        // GET_PICKUP_COORDS
        // REMOVE_PICKUP
        // HAS_PICKUP_BEEN_COLLECTED
        // ...
    }

 

 

Edited by alexguirre

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...

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.