Skip to content
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

fix(extra-natives-five): draw rect function offset #3127

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

Conversation

DaniGP17
Copy link
Contributor

@DaniGP17 DaniGP17 commented Feb 4, 2025

Goal of this PR

Fix a crash when running native DRAW_LINE_2D due to a shift in the _setDrawRectCoords function as of gamebuild 3407.

How is this PR achieving the goal

Change function offset for version b3407 and later.

This PR applies to the following area(s)

FiveM, Natives

Successfully tested on

Game builds: 3095, 3258, 3407
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

fixes #3126

@github-actions github-actions bot added the invalid Requires changes before it's considered valid and can be (re)triaged label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Requires changes before it's considered valid and can be (re)triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SCRIPT ERROR: native 000000000b856a90: exception at address 0x7ff6d6e9af64 (DrawLine_2d) on b3407
1 participant