if(IsPlayerInAnyVehicle(playerid)){ //code if player is in any veh}else{ //code if player is on foot or smth diffrent}