esx-community / esx_vehiclelock

Vehicle lock system for ESX
38 stars 30 forks source link

Added a raycast to check for police vehicles. #17

Closed michael86 closed 4 years ago

michael86 commented 5 years ago

GetClosestVehicle always returns 0 for emergency vehicles, so if GetClosestVehicle returns 0, then use a raycast to check for police vehicle. If the raycast returns a value then triggers the call back to check vehicle is owned.

New pull request due to removing print statements and a call back I added that is no longer needed.

ElPumpo commented 4 years ago

You changed so much more than your title which you havent documentated. Make seperate PRs for seperate stuff