Jump to content
View in the app

A better way to browse. Learn more.

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

How do you create "pick-up" items?

Featured Replies

Posted

Hi there.

 

I am trying to spawn in a clip of money for the player to pick up. However I can't seem to get it done. I have been trying this but to no avail:

 

//playerPos is in this case a place holder

 

OBJECT::CREATE_PICKUP(GAMEPLAY::GET_HASH_KEY("PICKUP_MONEY_VARIABLE"), playerPos.x + 5, playerPos.y + 5, playerPos.z + 5, 0, 200, true, GAMEPLAY::GET_HASH_KEY("s_inv_moneyclip01x"), 1, 1);

 

Could someone help me out with this?

Edited by DoctorBones

  • Author
20 minutes ago, LMS said:

What happens with the code above? The pickups certainly do work, I have used them with money bags before. Will see if I can find that code later.

Okay I don't know what happened but now it works. Though I cannot pick it up. It adds to your wallet once you get near it. I don't know if that can be changed to you having to pick it up?

I think despite the name pickup you usually automatically pick those up. Maybe you can use of the natives to block it from collection and then see if you can trigger it manually. Alternatively, try spawning the clip yourself.

  • Author
1 hour ago, LMS said:

I think despite the name pickup you usually automatically pick those up. Maybe you can use of the natives to block it from collection and then see if you can trigger it manually.

Oh yeah that could work. Thanks for the help!

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

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.