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.

Featured Replies

Posted

Coming from an old version of the natives.h that still had CREATE_STRING, what is known about how VAR_STRING is used?

The first argument is a flag but all the comment says is that the first bit MUST NOT be set and that a value of 0 should be set when "passing a hash".
Does the first flag seem to influence anything else? is there a difference whether I pass 2, 10 or 0x7FFFFFFE ?

Followup question, if I want to pass a Hash, a hash of what exactly can I even pass to this function, and if I have a valid has, do I just pass it like VAR_STRING(0, myHash) ?

Next question: why the template arguments? can I provide more than 3 arguments? if so, what do the additional arguments even do?

From usage examples, I can see that the "second" argument (after the flag) is almost always just the hardcoded string "LITERAL_STRING". What other values are possible to specify here? I have seen "CASH_STRING" in one location, but are other values known

The "third" argument is then the char pointer to my (i suppose UTF-8) encoded string. so far so good.

But what about additional arguments? what if i provide a fourth or fifth character pointer?

I am asking because I am trying to display UTF-8 encoded korean characters that the game just displays as empty boxes. The characters are valid UTF-8, but as korean characters three bytes wide each. What surprises me that displaying cyrillic charactes is not a problem, these are also UTF-8 encoded and two bytes wide. So is there maybe an option or argument to enable additional characters for drawing strings?

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.