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

Showing a prompt while near a campfire

You're viewing a summary of the most helpful posts in this topic — about 2 minutes of reading instead of 5 minutes for all 24 posts.

Featured Replies

I have made some mods for rdr2, so I am familiar with the basics.However,  I really want to know how to make a prompt "bound" to a certain object group. Like it was done in the Hunting Wagon mod (link below), by making the "Hunting Wagon" prompt appear when you approached a campfire. I know how to create prompts and how to place them on certain coordinates, but I have no idea how to make them appear when you get near a player created campfire.

 

Edited by bolmin

  • 2 weeks later...

Could you use the clear method names instead of the hashed names? Otherwise its difficult to read your code.

The first thing I notice is that you disable your prompt at the end.

I guess it should look like this: UI::_UIPROMPT_SET_ENABLED(Prompt_Camp, 1);

 

Havent checked the rest yet, but those enabling methods are usually for toggling (0 is off and 1 is on).

Or did I misunderstand it?

Edited by HughJanus

In the mod thread of hunting wagon I just asked if the source code is available - maybe the creator shares his/her code, then we will see.

How does the hunting wagon mod work? Do the prompts only appear when you approach the wagon from a certain direction? Maybe theres some trick to it.

Hi, some of the hunting wagon code isn't mine to share (menu base) and its a very bad learning resource tbh so I do plan on rewriting it some day and releasing it. But I'm more than happy to share any of the specifics of the hunting wagon part.

 

Looks like you had the wrong group hash, it should be 1754796591 (0x6898122F).

 

Exact code I use:

	wagon_menu_prompt = UI::_UIPROMPT_REGISTER_BEGIN();
	UI::_UIPROMPT_SET_CONTROL_ACTION(wagon_menu_prompt, GAMEPLAY::GET_HASH_KEY("INPUT_FRONTEND_LS"));
	UI::_UIPROMPT_SET_TEXT(wagon_menu_prompt, _CREATE_VAR_STRING(10, "LITERAL_STRING", "Hunting Wagon"));

	UI::_UIPROMPT_SET_PRIORITY(wagon_menu_prompt, 1);
	UI::_UIPROMPT_SET_TRANSPORT_MODE(wagon_menu_prompt, 0);
	UI::_UIPROMPT_SET_ATTRIBUTE(wagon_menu_prompt, 18, 1);
	UI::_UIPROMPT_SET_STANDARDIZED_HOLD_MODE(wagon_menu_prompt, 1704213876);
	UI::_UIPROMPT_REGISTER_END(wagon_menu_prompt);

	UI::_UIPROMPT_SET_ENABLED(wagon_menu_prompt, true);
	UI::_UIPROMPT_SET_VISIBLE(wagon_menu_prompt, true);

	UI::_UIPROMPT_SET_GROUP(wagon_menu_prompt, 1754796591, 0);

 

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

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.