esx-community / esx_vehiclelock

Vehicle lock system for ESX
38 stars 30 forks source link

Added a raycast to check for police vehicles. #16

Closed michael86 closed 5 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.

michael86 commented 5 years ago

See newest pull request.