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

[BUG] Cruisecontrol keeps going when engine cut off #483

Open
Borreke0 opened this issue Nov 30, 2024 · 1 comment
Open

[BUG] Cruisecontrol keeps going when engine cut off #483

Borreke0 opened this issue Nov 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Borreke0
Copy link

Describe the bug
When using the cruise control and stopping the engine while using the cruise control, the cruise control stays enabled and the vehicle is still with no RPM or anything

To Reproduce
Steps to reproduce the behavior:

  1. Spawn a car
  2. Drive it
  3. Enable Cruise control (standard bind is 'Y', or '/togglecruise')
  4. Cut down the engine (/engine or scroll wheel up/down

Expected behavior
Cruise control should be disabled when the engine stops, in my opinion

Screenshots

Questions (please complete the following information):

  • When you last updated: Recently
  • Are you using custom resource? which ones? A lot, but nothing bothering this or the other systems.
  • Have you renamed qb- to something custom? no

Additional context

@Borreke0 Borreke0 added the bug Something isn't working label Nov 30, 2024
@L1quidSn4ke
Copy link

                if not isTurningOrHandbraking and GetEntitySpeed(veh) < speed - 1.5 then
                    speed = 0
                    TriggerEvent('seatbelt:client:ToggleCruise', false)
                    QBCore.Functions.Notify(Lang:t('cruise.deactivated'), 'error')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants