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

Merged
merged 1 commit into from
May 21, 2025

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
Copy link
Contributor Author

@outsider31000 outsider31000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes done

@prikolium-cfx prikolium-cfx added the ready-to-merge This PR is enqueued for merging label May 1, 2025
@prikolium-cfx prikolium-cfx merged commit 3ec750c into citizenfx:master May 21, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR is enqueued for merging 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.

2 participants