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

🔑 Optionally save acquired keys into DB #255

Closed
wants to merge 2 commits into from

Conversation

Cocodrulo
Copy link
Contributor

Describe Pull request
This PR makes so the aquired keys will be saved into DB so when the server restarts you will still have the keys you were given. This feature is optional and can be set in the Config file. The PR is made to answer this suggestion [SUGGESTION] Database keys. I believe that is easier to make this into player metadata instead of a full new database table.

Questions (please complete the following information):

  • Have you personally loaded this code into an updated qbcore project and checked all it's functionality? Yes
  • Does your code fit the style guidelines? Yes
  • Does your PR fit the contribution guidelines? Yes

@KuulZone
Copy link

KuulZone commented May 4, 2024

Hopefully this gets in. It's kinda annoying.

Copy link
Contributor

@Z3rio Z3rio left a comment

Choose a reason for hiding this comment

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

Lovely PR, and great idea.
But doing it this way is not recommended, as anyone could trigger that server event from their client with any kind of key list.

This should be something to be fully handled on the serverside if it should be secure, qb-core already has enough insecure server events as it is.

Copy link

This PR has had 60 days of inactivity & will close within 7 days

@Cocodrulo
Copy link
Contributor Author

I think this should be considered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants