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(scripting): RPC natives pointer args for player type #3025

Conversation

tens0rfl0w
Copy link
Contributor

Goal of this PR

ec2ba2e enabled type checking for server natives but didn't account for arguments of type "Player" being charPtr within RPC natives.

How is this PR achieving the goal

Manual type fix for args of type Player in RPC natives.

This PR applies to the following area(s)

FiveM, Server, Natives

Successfully tested on

Game builds: Not applicable

Platforms: Windows, Linux

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 #3023

@github-actions github-actions bot added the triage Needs a preliminary assessment to determine the urgency and required action label Dec 21, 2024
Copy link
Contributor

@iridium-cfx iridium-cfx left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the fix!

@iridium-cfx iridium-cfx added ready-to-merge This PR is enqueued for merging and removed triage Needs a preliminary assessment to determine the urgency and required action labels Dec 23, 2024
Oversight from a previous change that didn't account for arguments of type "Player" being charPtr on the server-side.
@tens0rfl0w tens0rfl0w force-pushed the fix/scripting/rpc-player-pointer-args branch from 61fe71d to fa95d3e Compare December 23, 2024 20:15
@github-actions github-actions bot added the triage Needs a preliminary assessment to determine the urgency and required action label Dec 23, 2024
@tens0rfl0w
Copy link
Contributor Author

Needed a revisit as @AvarianKnight reported that server setters and getters that target players were also broken.

@prikolium-cfx prikolium-cfx merged commit d2c806b into citizenfx:master Dec 25, 2024
3 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 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.

SetPlayerModel Serverside Crashed
3 participants