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

feat(rdr): add NETWORK_DOES_ENTITY_EXIST_WITH_NETWORK_ID as a Cfx native #2856

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

AvarianKnight
Copy link
Contributor

Goal of this PR

Allow the usage of NETWORK_DOES_ENTITY_EXIST_WITH_NETWORK_ID without needing to directly invoke 0x18A47D074708FD68.

This also copies the ScRT warnings to provide more useful warnings.

How is this PR achieving the goal

Declared the native as a Cfx native and include scripting core warnings.

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

- this native was 'hidden' and didn't have a native declaration since it was removed in RDR, but is generally useful and saves extra native calls

- this also duplicates the existing overrides that FiveM has so calling on non-existent net ids/object ids show as a ScRT warning instead of a citizen-core-rdr3
@github-actions github-actions bot added RedM Issues/PRs related to RedM invalid Requires changes before it's considered valid and can be (re)triaged labels Oct 10, 2024
@martonp96 martonp96 self-requested a review October 16, 2024 18:09
@martonp96 martonp96 added ready-to-merge This PR is enqueued for merging and removed invalid Requires changes before it's considered valid and can be (re)triaged labels Oct 16, 2024
@martonp96
Copy link

Tested, working, thank you for the contribution.

@prikolium-cfx prikolium-cfx merged commit df16d52 into citizenfx:master Oct 21, 2024
3 of 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants