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 Fivemerr bug and Tweets on Linux hosts bug #401

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mbiddle
Copy link

@mbiddle mbiddle commented Nov 14, 2024

Description

  1. Fixed FiveMerr bug related to API Token checking.
  2. Use the native QBCore Round function
  3. Fixed Linux bug with Tweets date/time when Config.Linux was set to true

I think the config.lua should be the only place config parameters are being set. I moved the WebHook and FivemerrApiToken definitions to config.lua and also improved a few of the if conditions.

Checklist

  • I have personally loaded this code into an updated qbcore project and checked all of its functionality.
  • My code fits the style guidelines.
  • My PR fits the contribution guidelines.

@Cocodrulo
Copy link

I think both the Webhook and the API token were in the server.lua because of security reason. Since the config.lua is shared, then it can be access by the client, and with some not authorised FiveM modifications I think they can get it. On the other hand, being in the s we server it cannot be access by anyone.

@Qwerty1Verified
Copy link

Yeah those variables are sensitive and should be server-side only.

@mbiddle mbiddle changed the title Config moves and if conditions updates Update if conditions related to the newly merged Fivemerr Nov 15, 2024
@mbiddle
Copy link
Author

mbiddle commented Nov 15, 2024

Updated. Not much to this change anymore but I still think it fixes a tiny bug.

@mbiddle
Copy link
Author

mbiddle commented Nov 16, 2024

Pushed an additional change to switch to using the native shared Round function and to remove the local function.

…ime works for me in the on linux so I think this is a proper fix.
@mbiddle mbiddle changed the title Update if conditions related to the newly merged Fivemerr Fix Fivemerr bug and Tweets on Linux hosts bug Dec 1, 2024
@mbiddle
Copy link
Author

mbiddle commented Dec 1, 2024

Pushed an additional change that fixes a bug with the date/time on Linux hosts.
image

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.

3 participants