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

Update main.lua for code improvement and disable controls while engine off #260

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

Conversation

warlikeprince
Copy link

@warlikeprince warlikeprince commented Jun 14, 2024

Describe Pull request
It is the small code improvement for repetitive code. As well as i added the code to check for the weather engine is on or off, If engine is off then it disable the vehicle control actions like acceleration, braking, left turn and right turn.

If your PR is to fix an issue mention that issue here
qbcore-framework/qb-smallresources#464
#256
#257

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]

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.

None yet

1 participant