Skip to content

feat(extra-natives-rdr3): add GET_ASPECT_RATIO native RedM #3285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

outsider31000
Copy link
Contributor

Goal of this PR

This PR adds a dedicated aspect ratio native in RedM to mirror FiveM’s existing functionality. While GET_CURRENT_SCREEN_RESOLUTION can technically yield the aspect ratio (x/y), a specific native clarifies its purpose and makes usage more straightforward for developers

How is this PR achieving the goal

It introduces a new native that directly returns the current aspect ratio

This PR applies to the following area(s)

RedM

Successfully tested on

Game builds: ..
1491
Platforms: Windows, Linux

windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

@github-actions github-actions bot added RedM Issues/PRs related to RedM triage Needs a preliminary assessment to determine the urgency and required action labels Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RedM Issues/PRs related to RedM triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant