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.
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.