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

Add secondary check for hasKeys #155

Closed
wants to merge 1 commit into from
Closed

Conversation

Jerrys-C
Copy link

Description

This PR improves the verification logic for hasKeys to ensure that vehicle owners can still access their vehicles after a server restart. When Entity(vehicle).state.owner is found to be empty (for example, following a vehicle regeneration by another plugin), the system now performs an additional check against the database to confirm if the player has access to the vehicle keys.

#154

Checklist

  • I have personally loaded this code into an updated Qbox project and checked all of its functionality.
  • My pull request fits the contribution guidelines & code conventions.

verification via database when state is empty
@Jerrys-C Jerrys-C closed this Nov 11, 2024
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.

1 participant