qbcore-framework / qb-vehiclekeys

Vehicle Keys System For QB-Core :key:
GNU General Public License v3.0
35 stars 224 forks source link

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

Open warlikeprince opened 4 weeks ago

warlikeprince commented 4 weeks ago

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 https://github.com/qbcore-framework/qb-smallresources/issues/464

256

257

Questions (please complete the following information):