Skip to content

Handle ped value 0 during player transition#28

Merged
antond15 merged 4 commits intoCommunityOx:mainfrom
TGIANN:main
Jul 9, 2025
Merged

Handle ped value 0 during player transition#28
antond15 merged 4 commits intoCommunityOx:mainfrom
TGIANN:main

Conversation

@TGIANN
Copy link

@TGIANN TGIANN commented Jul 6, 2025

Added a check to skip cache updates when PlayerPedId() returns 0, which can occur during ped transitions. This prevents invalid cache states and potential errors when the player's ped is temporarily unavailable.

TGIANN added 3 commits July 6, 2025 14:53
Added a check to skip cache updates when PlayerPedId() returns 0, which can occur during ped transitions. This prevents invalid cache states and potential errors when the player's ped is temporarily unavailable.
Copy link
Member

@antond15 antond15 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@antond15 antond15 merged commit 9fbf022 into CommunityOx:main Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants