Get Vehicle X Y Coordinates

How can I set a Variable equal to Vehicles (like boat or airship) location?


For Puzzles I can make a Variable equal to Player MAP X and Y, but I want to do the same with the Airship. How can I do that?
In the script call to set it's location it's

Code:
$gameMap.vehicle(vehicleId).setLocation(mapId, x, y);



so tie it in a variable it'd just be


$gameMap.vehicle(0).x; 
$gameMap.vehicle(0).y;





This is for boat (0), ship (1), airship (1)
It Works, than you <3<3<3

Original thread: https://forums.rpgmakerweb.com/threads/get-vehicle-x-y-coordinates.56556/