qbcore-framework / qb-vehiclekeys

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

Preventing vehicles being started when player not inside #201

Closed djraymond closed 1 year ago

djraymond commented 1 year ago

added check if you are in the car to turn it on and off|

so if you are now outside the car, you cannot switch the car on and off with g, only with the keyfob If you are in the car you can turn the engine on and off with g

If your PR is to fix an issue mention that issue here yes

ChristianBDev commented 1 year ago

Tested, LGTM, although line 388 QBCore.Functions.Notify(Lang:t("notify.vehclose"), "error") should stay in as it notifies if not within distance of 8 there's no vehicle close that you have keys to. Should be there, unless distance needs increased for IRL sake.

Well done @djraymond