Skip to content

feat(extra-natives-rdr3): add GET_PED_SCALE GET_PED_WETNESS GET_PED_WETNESS_HEIGHT for RedM #3325

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 2 commits into
base: master
Choose a base branch
from

Conversation

Ktos93
Copy link
Contributor

@Ktos93 Ktos93 commented Apr 9, 2025

Goal of this PR

Introduce a new native function GET_PED_SCALE that allows retrieving the current scale of a ped, supporting both meta and non-meta peds.

How is this PR achieving the goal

The PR registers a new native function GET_PED_SCALE that retrieves a ped's scale by accessing internal component data. It safely handles both meta and non-meta peds by resolving the correct memory paths and applying necessary type checks.

This PR applies to the following area(s)

RedM

Successfully tested on

Game builds: 1491

Platforms: 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 Apr 9, 2025
@Ktos93 Ktos93 changed the title feat(extra-natives-rdr3): add GET_PED_SCALE for RedM feat(extra-natives-rdr3): add GET_PED_SCALE GET_PED_WETNESS GET_PED_WETNESS_HEIGHT for RedM Apr 9, 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