How can I get the player vehicle as an object

Trying to create a spell via the source but no idea how to get vehicle properly so the spell will work.

Player is currently on vehicle.

No matter what I do even If i take it as the closet creature - the spells doesn’t work if I’m on the vehicle.